/* Contact Form Styles Removed - Using Default Styles */
/* Button styles removed - using default */

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.success-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    animation: modalSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: checkmarkBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    animation: pulse 2s infinite;
    z-index: -1;
}

.success-icon::after {
    content: '✓';
    color: white;
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.3) rotate(-90deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease 0.4s backwards;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: slideInUp 0.6s ease 0.5s backwards;
    font-size: 1.05rem;
}

.success-button {
    background: var(--primary-color-90, #5F236B);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease 0.6s backwards;
    box-shadow: 0 4px 15px rgba(95, 35, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.success-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.success-button:hover::before {
    left: 100%;
}

.success-button:hover {
    transform: translateY(-3px);
    background: var(--primary-color-80, #7F378D);
    box-shadow: 0 8px 25px rgba(95, 35, 107, 0.4);
}

.success-button:active {
    transform: translateY(-1px);
    background: var(--primary-color-70, #9F4FAF);
}

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

/* Form container styles removed */

/* Loading overlay for the form */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    z-index: 10;
}

.form-container {
    position: relative;
}

.form-loading-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Spinner for loading */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: #007bff !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-icon::after {
        font-size: 2.2rem;
    }
    
    .success-title {
        font-size: 1.4rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
}
