/* Refer Store Modal Styles */

.refer-store-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.refer-store-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

@media (min-width: 768px) {
    .refer-store-modal {
        align-items: center;
    }
}

.refer-store-modal-content {
    pointer-events: auto;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
}

@media (min-width: 768px) {
    .refer-store-modal-content {
        border-radius: 16px;
    }
}

.refer-store-modal-drag-handle {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 4px;
}

@media (min-width: 768px) {
    .refer-store-modal-drag-handle {
        display: none;
    }
}

.refer-store-modal-drag-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    border-radius: 9999px;
    background: #cbd5e1;
}

.refer-store-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
}

.refer-store-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refer-store-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(125, 0, 31, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.refer-store-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.refer-store-modal-subtitle {
    font-size: 10px;
    color: #94a3b8;
    margin: 0;
    margin-top: 2px;
    line-height: 1.2;
}

.refer-store-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s;
    flex-shrink: 0;
}

.refer-store-modal-close:hover {
    background: #e2e8f0;
}

.refer-store-modal-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 20px;
}

.refer-store-modal-step {
    padding: 20px;
    padding-bottom: 24px;
}

.refer-store-modal-step-content {
    /* Same as form content */
}

.refer-store-modal-form {
    padding: 20px;
    padding-bottom: 24px;
}

.refer-store-modal-context {
    background: rgba(125, 0, 31, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.refer-store-modal-context p {
    font-size: 12px;
    color: #7D001F;
    margin: 0;
    line-height: 1.5;
}

.refer-store-modal-description {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.refer-store-modal-field {
    margin-bottom: 16px;
}

.refer-store-modal-field:last-of-type {
    margin-bottom: 24px;
}

.refer-store-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.refer-store-modal-required {
    color: #f87171;
}

.refer-store-modal-optional {
    color: #94a3b8;
    font-weight: 400;
}

.refer-store-modal-input,
.refer-store-modal-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.refer-store-modal-input:focus,
.refer-store-modal-textarea:focus {
    border-color: rgba(125, 0, 31, 0.5);
    box-shadow: 0 0 0 3px rgba(125, 0, 31, 0.1);
    background: white;
    color: #0f172a;
}

.refer-store-modal-input::placeholder,
.refer-store-modal-textarea::placeholder {
    color: #94a3b8;
}

.refer-store-modal-textarea {
    resize: none;
    min-height: 80px;
}

/* Phone Input Styles */
.refer-store-modal-phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s;
}

.refer-store-modal-phone-container:focus-within {
    border-color: rgba(125, 0, 31, 0.5);
    box-shadow: 0 0 0 3px rgba(125, 0, 31, 0.1);
    background: white;
}

.refer-store-modal-country-code {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    flex-shrink: 0;
}

.refer-store-modal-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    box-shadow: none;
}

.refer-store-modal-phone-input:focus {
    box-shadow: none;
    background: transparent;
}

/* OTP Input Styles */
.refer-store-modal-otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.refer-store-modal-otp-input {
    width: 56px;
    height: 56px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.refer-store-modal-otp-input:focus {
    border-color: rgba(125, 0, 31, 0.5);
    box-shadow: 0 0 0 3px rgba(125, 0, 31, 0.1);
    background: white;
}

.refer-store-modal-otp-timer {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

.refer-store-modal-otp-timer span {
    font-weight: 600;
    color: #0f172a;
}

.refer-store-modal-otp-footer {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 8px;
}

.refer-store-modal-resend {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: none;
    background: transparent;
    color: #7D001F;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
}

.refer-store-modal-resend:hover:not(:disabled) {
    background: rgba(125, 0, 31, 0.05);
}

.refer-store-modal-resend:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

/* Step Container */
.refer-store-modal-step {
    padding: 20px;
}

.refer-store-modal-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #7D001F;
    color: white;
}

.refer-store-modal-submit:hover:not(:disabled) {
    background: #5a0016;
}

.refer-store-modal-submit:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.refer-store-modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.refer-store-modal-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.refer-store-modal-success-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.refer-store-modal-success-message {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    max-width: 260px;
    line-height: 1.5;
}

/* Note: Dark mode removed - website uses light theme only */
