/* ===================================
   MODERN CONTACT SECTION
   =================================== */

.contact-modern {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Modern Form Styles */
.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Floating Label Inputs */
.form-group {
    position: relative;
}

.floating-label {
    position: relative;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    width: 100%;
    padding: 16px 48px 16px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.floating-label input:focus,
.floating-label select:focus,
.floating-label textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.floating-label input:not(:placeholder-shown),
.floating-label select:not([value=""]),
.floating-label textarea:not(:placeholder-shown) {
    padding-top: 24px;
    padding-bottom: 8px;
}

.floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 12px;
    color: #C7EA46;
}

.textarea-group label {
    top: 24px;
}

.textarea-group textarea:focus + label,
.textarea-group textarea:not(:placeholder-shown) + label {
    top: 12px;
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.textarea-group .input-icon {
    top: 24px;
}

/* Select Styling */
.floating-label select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-opacity='0.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.floating-label select option {
    background: #1a1f3a;
    color: white;
}

/* Checkbox Styling */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #C7EA46, #A8D030);
    border-color: #C7EA46;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Modern Button */
.btn-modern {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #C7EA46 0%, #A8D030 100%);
    border: none;
    border-radius: 12px;
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(199, 234, 70, 0.6);
}

.btn-modern:active {
    transform: translateY(0) scale(1);
}

.btn-modern.loading .btn-text,
.btn-modern.loading .btn-icon {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern.loading .btn-loader {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

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

/* Form Message */
.form-message {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

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

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card-modern {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.info-card-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(199, 234, 70, 0.3);
    transform: translateX(5px);
}

.info-icon-wrapper {
    flex-shrink: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C7EA46, #A8D030);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
}

.info-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.info-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 4px;
}

.info-content a {
    color: #C7EA46;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #BFDB38;
}

.info-note {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Social Connect */
.social-connect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
}

.social-connect h4 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.social-links-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, #C7EA46, #A8D030);
    border-color: #C7EA46;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 234, 70, 0.3);
}

/* Response Time Badge */
.response-time-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(199, 234, 70, 0.1), rgba(168, 208, 48, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.response-time-badge .badge-icon {
    font-size: 32px;
}

.badge-content strong {
    display: block;
    font-size: 18px;
    color: white;
    margin-bottom: 4px;
}

.badge-content span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-modern {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-header h3 {
        font-size: 24px;
    }
    
    .floating-label input,
    .floating-label select,
    .floating-label textarea {
        padding: 14px 40px 14px 14px;
    }
    
    .social-links-modern {
        justify-content: center;
    }
}
