/* =============================================
   MODERN CONTACT SECTION STYLES
   ============================================= */

/* Contact Intro Text */
.contact-intro {
    color: #a0a0c0;
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/* =============================================
   CONTACT INFO WRAPPER
   ============================================= */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Contact Info Cards */
.contact-info-card {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.8), rgba(25, 25, 50, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-info-card:hover {
    transform: translateX(10px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.contact-info-card:hover::before {
    opacity: 1;
}

/* Info Icons */
.info-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-card:hover .info-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    transform: scale(1.1);
}

/* Phone and Email icon colors */
.phone-icon {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(56, 161, 105, 0.2));
    color: #48bb78;
}

.email-icon {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.2), rgba(221, 107, 32, 0.2));
    color: #ed8936;
}

.available-icon {
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.2), rgba(49, 151, 149, 0.2));
    color: #38b2ac;
}

/* Info Content */
.info-content {
    position: relative;
    z-index: 1;
}

.info-content h5 {
    font-size: 14px;
    color: #8888aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-content p,
.info-content a {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #667eea;
}

/* Availability Status */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #48bb78;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(72, 187, 120, 0);
    }
}

/* Contact Social Links */
.contact-social-links {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.8), rgba(25, 25, 50, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-top: 10px;
}

.contact-social-links h5 {
    font-size: 14px;
    color: #8888aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

.social-icon.linkedin:hover {
    background: linear-gradient(135deg, #0a66c2, #004182);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.3);
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.3);
}

.social-icon.github:hover {
    background: linear-gradient(135deg, #333, #24292e);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(36, 41, 46, 0.3);
}

/* =============================================
   MODERN CONTACT FORM
   ============================================= */
.modern-contact-form {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.6), rgba(25, 25, 50, 0.8));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.modern-contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h3 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #8888aa;
    font-size: 16px;
    margin: 0;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-col.full-width {
    flex: 0 0 100%;
}

/* Floating Label Input Groups */
.floating-label-group {
    position: relative;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-label-group:hover {
    border-color: rgba(102, 126, 234, 0.35);
}

.floating-label-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Input Icon */
.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6666888;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.textarea-icon {
    top: 24px;
    transform: none;
}

.floating-label-group:focus-within .input-icon {
    color: #667eea;
}

/* Inputs */
.floating-label-group input,
.floating-label-group textarea {
    width: 100%;
    padding: 22px 20px 10px 52px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #ffffff;
    font-family: inherit;
    resize: none;
}

.floating-label-group textarea {
    padding-top: 28px;
    min-height: 140px;
}

.floating-label-group input::placeholder,
.floating-label-group textarea::placeholder {
    color: transparent;
}

/* Floating Labels */
.floating-label-group label {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    color: #6666888;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
}

.textarea-group label {
    top: 24px;
    transform: none;
}

/* Float label on focus or when filled */
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
    top: 8px;
    left: 52px;
    font-size: 11px;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: none;
}

/* Focus Border Animation */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.floating-label-group:focus-within .focus-border {
    width: 100%;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.submit-btn::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 ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon svg {
    transform: translateX(5px);
}

/* Loading State */
.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: block;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: rotate 1s linear infinite;
}

.spinner circle {
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-dasharray: 80, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 80, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 80, 200;
        stroke-dashoffset: -125;
    }
}

/* Success/Error Messages Styling for Modern Form */
.modern-contact-form .success-msg {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15), rgba(56, 161, 105, 0.15));
    border: 1px solid rgba(72, 187, 120, 0.3);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.modern-contact-form .success-msg p {
    color: #48bb78;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.modern-contact-form .error-msg {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.15), rgba(229, 62, 62, 0.15));
    border: 1px solid rgba(245, 101, 101, 0.3);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.modern-contact-form .error-msg p {
    color: #f56565;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */
@media (max-width: 991px) {
    .contact-info-wrapper {
        margin-bottom: 40px;
    }
    
    .modern-contact-form {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modern-contact-form {
        padding: 25px 20px;
    }
    
    .form-header h3 {
        font-size: 24px;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .info-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
}

@media (max-width: 479px) {
    .contact-intro {
        font-size: 16px;
    }
    
    .modern-contact-form {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .floating-label-group input,
    .floating-label-group textarea {
        padding-left: 48px;
        font-size: 15px;
    }
    
    .floating-label-group label {
        left: 48px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
}

