/* Contact Section - Form and CEO Profile Styles */

/* Contact Section Container */
.contact {
    background-color: var(--dark-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact h2 {
    margin-bottom: 60px;
}

/* Contact Information Display */
.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 60px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info div {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

/* Contact Form Container and Layout */
.contact-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 60px;
}

.ceo-profile-container {
    flex: 0 0 auto;
    width: 280px;
}

.ceo-profile {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 20px;
}

.ceo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(148, 139, 207, 0.3);
}

.ceo-details h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.ceo-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* Contact Form Styling */
.contact-form {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: var(--font-main);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(148, 139, 207, 0.2);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Submit Button */
button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(148, 139, 207, 0.3);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::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: all 0.6s ease;
}

button[type="submit"]:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 139, 207, 0.5);
}

button[type="submit"]:hover::before {
    left: 100%;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .ceo-profile-container {
        width: 100%;
        order: 1;
    }

    .contact-form {
        order: 2;
        max-width: none;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .contact-info div {
        min-width: auto;
        padding: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact h2 {
        margin-bottom: 40px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 0 !important;
    }
    
    .ceo-profile-container, .contact-form {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ceo-profile {
        border-radius: 16px 16px 0 0;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        box-shadow: none;
        border-bottom: none !important;
        border: 1px solid rgba(150, 150, 150, 0.1);
        border-bottom: none;
    }
    
    .contact-form {
        border-radius: 0 0 16px 16px !important;
        margin-top: 0 !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(150, 150, 150, 0.1);
        border-top: none;
        padding: 30px !important;
    }
    
    .contact-info {
        padding: 20px;
        margin-bottom: 40px;
    }
}

/* Hide Pageclip Default Success Overlay */
.pageclip-form__success {
    display: none !important;
}

/* Custom Form Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 40px;
    animation: overlayFadeIn 0.5s ease-out forwards;
}

.form-success-overlay.active {
    display: flex;
}

.form-success-content {
    text-align: center;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

/* Animated Success Checkmark */
.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
    animation: scaleIn 0.5s ease-out 0.3s both;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--primary-color);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    animation: drawCircle 0.6s ease-out 0.5s forwards;
}

.checkmark-check {
    stroke: var(--primary-color);
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawCheck 0.4s ease-out 1.1s forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Success Text Content */
.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.2s forwards;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.4s forwards;
}

.success-next-steps {
    font-size: 0.95rem;
    color: var(--primary-color);
    padding: 15px 20px;
    background: rgba(148, 139, 207, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(148, 139, 207, 0.3);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.6s forwards;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

.confetti:nth-child(1) { left: 10%; background: #948bcf; animation-delay: 0.5s; }
.confetti:nth-child(2) { left: 20%; background: #ff8c42; animation-delay: 0.6s; }
.confetti:nth-child(3) { left: 30%; background: #6366F1; animation-delay: 0.7s; }
.confetti:nth-child(4) { left: 40%; background: #EC4899; animation-delay: 0.8s; }
.confetti:nth-child(5) { left: 50%; background: #9054f7; animation-delay: 0.9s; }
.confetti:nth-child(6) { left: 60%; background: #948bcf; animation-delay: 1s; }
.confetti:nth-child(7) { left: 70%; background: #ff8c42; animation-delay: 1.1s; }
.confetti:nth-child(8) { left: 80%; background: #6366F1; animation-delay: 1.2s; }
.confetti:nth-child(9) { left: 90%; background: #EC4899; animation-delay: 1.3s; }
.confetti:nth-child(10) { left: 95%; background: #9054f7; animation-delay: 1.4s; }

/* Keyframe Animations */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(600px) rotate(720deg);
    }
}

/* Position contact-form relatively for overlay positioning */
.contact-form {
    position: relative;
}

/* Mobile Responsive for Success Overlay */
@media (max-width: 576px) {
    .form-success-overlay {
        padding: 20px;
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
    
    .success-next-steps {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}