/* Signup Success Modal Styles */

.signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signup-modal-overlay.show {
    opacity: 1;
}

.signup-modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.signup-modal-container::-webkit-scrollbar {
    display: none;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Modal Header - Success State */
.modal-header-success {
    background: linear-gradient(135deg, #0a3c72 0%, #083056 100%);
    color: white;
}

/* Modal Header - Error State */
.modal-header-error {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
}

/* Error Icon */
.error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    color: white;
}

.error-mark {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
}

.error-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

/* Error Message */
.error-message {
    text-align: center;
    margin-bottom: 25px;
}

.error-main-text {
    font-size: 18px;
    font-weight: 600;
    color: #d32f2f;
    margin: 0;
}

/* Solution Box */
.solution-box {
    margin-bottom: 25px;
}

.solution-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.solution-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    transition: all 0.3s ease;
}

.solution-item:hover {
    background: #efefef;
    transform: translateX(3px);
}

.solution-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: #d32f2f;
    font-weight: 700;
}

.solution-details h4 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.solution-details p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.solution-details a {
    color: #0a3c72;
    text-decoration: none;
    font-weight: 600;
}

.solution-details a:hover {
    text-decoration: underline;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.checkmark {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke-linecap: round;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.modal-subtitle {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Modal Content */
.modal-content {
    padding: 40px 30px;
}

.success-message {
    text-align: center;
    margin-bottom: 35px;
}

.main-text {
    font-size: 18px;
    font-weight: 600;
    color: #0a3c72;
    margin: 0 0 10px 0;
}

.sub-text {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Next Steps Section */
.next-steps-section {
    margin-bottom: 30px;
}

.next-steps-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0a3c72;
    margin: 0 0 20px 0;
}

.step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding: 15px;
    background: #f8f9fc;
    border-radius: 12px;
    border-left: 4px solid #0a3c72;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.step-item:hover {
    background: #f0f4f9;
    transform: translateX(5px);
}

.step-item:nth-child(2) { animation-delay: 0.1s; }
.step-item:nth-child(3) { animation-delay: 0.2s; }
.step-item:nth-child(4) { animation-delay: 0.3s; }
.step-item:nth-child(5) { animation-delay: 0.4s; }
.step-item:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0a3c72 0%, #083056 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0a3c72;
    margin: 0 0 5px 0;
}

.step-details p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #2196f3;
}

.info-box-blue {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.info-box-green {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box strong {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-box p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Account Info */
.account-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.account-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0a3c72;
    margin: 0 0 12px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #0a3c72;
    word-break: break-word;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #0a3c72 0%, #083056 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 60, 114, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 0 0 20px 20px;
}

.modal-footer p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.modal-footer a {
    color: #0a3c72;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   ERROR MODAL STYLES
   ============================================ */

.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-modal-overlay.show {
    opacity: 1;
}

.error-modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Error Header */
.error-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
}

.error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    color: white;
    animation: shake 0.5s ease-in-out;
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Error Content */
.error-content {
    padding: 30px;
}

.error-message {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 15px;
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    color: #991b1b;
}

.error-suggestions {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-suggestion {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-suggestion:hover {
    background: #f9fafb;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.suggestion-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.suggestion-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.suggestion-text strong {
    font-weight: 700;
    color: #333;
}

.suggestion-text a {
    color: #0a3c72;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.suggestion-text a:hover {
    color: #083056;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-modal-container,
    .error-modal-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header,
    .error-header {
        padding: 40px 20px 25px !important;
        border-radius: 0 !important;
    }

    .modal-title,
    .error-header h2 {
        font-size: 24px;
    }

    .success-checkmark,
    .error-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 15px;
    }

    .modal-content,
    .error-content {
        padding: 30px 20px;
    }

    .modal-actions {
        flex-direction: column;
        padding: 15px 20px;
    }

    .btn {
        width: 100%;
    }

    .step-item {
        gap: 12px;
        padding: 12px;
    }

    .step-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 15px 20px;
        border-radius: 0;
    }
}
