/* Enhanced Contact Section Improvements */

/* Contact Section Layout Enhancement */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

/* Contact methods stay in first row (side by side) */
.contact-primary {
    /* First column, first row */
}

.contact-secondary {
    /* Second column, first row */
}

/* Form spans full width in second row */
.contact-form-section {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* Left Column - Contact Methods */
.contact-methods-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Enhanced Primary Contact Cards */
.contact-card.primary-contact {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 33, 62, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.contact-card.primary-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #6366f1, #10b981);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card.primary-contact:hover::before {
    opacity: 1;
}

.contact-card.primary-contact:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

/* Enhanced Contact Header */
.contact-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.contact-icon-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.contact-card:hover .contact-icon-large::before {
    left: 100%;
}

/* Enhanced Primary Links */
.primary-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 1.25rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.primary-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.primary-link:hover::before {
    transform: scaleY(1);
}

.primary-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.25);
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.contact-action {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-link:hover .contact-action {
    transform: translateX(8px);
    color: #00d4ff;
}

/* Enhanced Secondary Contact Methods */
.contact-secondary {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 33, 62, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
}

.contact-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #00d4ff, #6366f1);
    opacity: 0.6;
}

.secondary-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.secondary-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #6366f1);
}

/* Enhanced Contact Options */
.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #00d4ff);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.contact-option:hover::before {
    transform: scaleY(1);
}

.contact-option:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(12px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #00d4ff);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.contact-option:hover .option-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.option-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.option-desc {
    display: block;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.option-arrow {
    font-size: 1.3rem;
    color: #10b981;
    transition: all 0.3s ease;
    margin-left: auto;
}

.contact-option:hover .option-arrow {
    transform: translateX(8px) scale(1.2);
    color: #00d4ff;
}

/* Enhanced Form Section */
.contact-form-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 33, 62, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #00d4ff, #10b981);
    opacity: 0.8;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #6366f1);
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: #b3b3b3;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Enhanced Form Fields */
.modern-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.modern-form .form-group input,
.modern-form .form-group textarea,
.modern-form .form-group select {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modern-form .form-group input:focus,
.modern-form .form-group textarea:focus,
.modern-form .form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(0, 212, 255, 0.15),
        0 8px 25px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.modern-form .form-group input::placeholder,
.modern-form .form-group textarea::placeholder {
    color: #888;
    font-weight: 400;
}

.modern-form .form-group textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

/* Enhanced Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #6366f1 50%, #10b981 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: scale(1.2) rotate(15deg);
}

/* Enhanced Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.form-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b3b3b3;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-icon {
    font-size: 1.1rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Loading State */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn.loading .btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
    }
    
    .contact-form-section {
        grid-column: 1;
        margin-top: 0;
    }
    
    .contact-card.primary-contact,
    .contact-secondary,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-icon-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .primary-link {
        padding: 1.25rem 1.5rem;
    }
    
    .contact-option {
        padding: 1.25rem;
    }
    
    .option-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-card.primary-contact,
    .contact-secondary,
    .contact-form-section {
        padding: 1rem;
    }
    
    .contact-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .modern-form .form-group input,
    .modern-form .form-group textarea,
    .modern-form .form-group select {
        padding: 1rem 1.25rem;
    }
}
