.flex, .col{
    display:flex;
}

.col{
    flex-direction:column;
}

.g-05{
    gap:0.5rem;
}

.g-1{
    gap:1rem;
}

.g-2{
    gap:2rem;
}

.m-0{
    margin: 0 !important;
}

.mt-05{
    margin-top: 0.5em;
}

.mt-1{
    margin-top: 1em;
}

.mb-025{
    margin-bottom: 0.25rem;
}

.mb-1{
    margin-bottom: 1rem;
}

.flex-wrap{
    flex-wrap:wrap;
}

.full{
    width:100%;
}

textarea, select, input:not([type='checkbox'], [type='radio']) {
  -webkit-appearance: none;
  appearance: none;
  color: #000;
}

/* Global popup styles (used by app.js showPopup) */
.popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(0,0,0,0.45); */
    background: linear-gradient(135deg #fff, #eee);
    z-index: 9999;
    padding: 1.25rem;
}
.popup-content {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.2);
    overflow: hidden;
    animation: popupIn 0.25s ease;
    overflow-y: auto;
}

.popup-body{
  overflow-y: auto;
  max-height: 70vh;
  scrollbar-width: thin;
  padding-bottom: 3rem;
}

.popup-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1rem 1rem;
    border-bottom:1px solid #eef2f7;
}
.popup-header h3{margin:0;font-size:1.125rem;color:#0f172a}
.popup-body{padding:1rem}
.close-popup{cursor:pointer;color:#6b7280}


.success-message {
    text-align: center;
    padding: 2rem;
}
.success-message i {
    font-size: 4rem;
    color: #ddd;
}

#email-modal .success-message i {
    color: var(--accent);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.success-message p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-direction: column;
}


.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: "⚠";
    font-size: 1rem;
}

.success-message,
.error-message-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2000;
    max-width: 400px;
    width: 90%;
    /* display: none; */
}

.success-icon,
.error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.success-icon {
    /* background: #10b981; */
    background: var(--primary);
    color: white;
}

.error-icon {
    background: #ef4444;
    color: white;
}

.success-message h3,
.error-message-popup h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-message p,
.error-message-popup p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-message::before,
.error-message-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: -1;
}

.method-content p {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.method-content p:hover {
    background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 480px) {
    .success-message,
    .error-message-popup {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .success-icon,
    .error-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@keyframes popupIn{
    from{transform:translateY(-8px);opacity:0}
    to{transform:none;opacity:1}
}