/* ===================================
   CONTACT PAGE SPECIFIC STYLES
   =================================== */

/* ===================================
   CONTACT HERO SECTION
   =================================== */
.contact-hero {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.8));
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.contact-hero .subheadline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* ===================================
   CONTACT LAYOUT
   =================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-layout > div:first-child {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

.contact-layout > div:last-child {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.4s forwards;
}

/* ===================================
   FIELDSET AND LEGEND STYLING
   =================================== */
.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group legend {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* ===================================
   CONTACT FORM ENHANCEMENTS
   =================================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(205, 175, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.contact-form:hover::before {
    transform: scaleX(1);
}

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

.contact-form p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   SUBMIT BUTTON ENHANCEMENTS
   =================================== */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
}

.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 var(--transition-slow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: var(--light-accent);
}

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

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   CONTACT INFO ENHANCEMENTS
   =================================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 2px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--light-accent);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(49, 130, 206, 0.2));
    transition: transform var(--transition-fast);
}

.contact-item:hover .service-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */
.why-choose-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid rgba(205, 175, 129, 0.2);
    transition: all var(--transition-base);
}

.why-choose-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.why-choose-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.why-choose-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-section li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(205, 175, 129, 0.2);
    transition: all var(--transition-fast);
}

.why-choose-section li:last-child {
    border-bottom: none;
}

.why-choose-section li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.why-choose-section li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===================================
   SUCCESS AND ERROR MESSAGES
   =================================== */
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 2px solid #c3e6cb;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    animation: slideInDown 0.5s ease-out;
    position: relative;
}

.success-message::before {
    content: '✅';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 2px solid #f5c6cb;
    animation: slideInDown 0.5s ease-out;
    position: relative;
}

.error-message::before {
    content: '❌';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.error-message ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-message li {
    margin-bottom: 0.5rem;
}

/* ===================================
   READY TO START SECTION
   =================================== */
.ready-to-start {
    text-align: center;
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.ready-to-start h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.ready-to-start p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.ready-to-start .cta-button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--secondary-color);
    display: inline-block;
}

.ready-to-start .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-accent);
}

/* ===================================
   CUSTOM DROPDOWN ENHANCEMENTS
   =================================== */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.dropdown-selected::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.dropdown-selected:hover {
    border-color: var(--accent-color);
}

.dropdown-selected:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.dropdown-selected.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.dropdown-options.show {
    display: block;
    animation: dropDown 0.3s ease-out;
}

.dropdown-option {
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-option.selected {
    background-color: var(--accent-color);
    color: white;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .contact-layout {
        gap: 3rem;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-hero {
        padding: 4rem 0 2rem;
        min-height: 40vh;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero .subheadline {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dropdown-selected {
        font-size: 16px;
        min-height: 50px;
        padding: 12px;
    }
    
    .dropdown-options {
        max-height: 250px;
    }
    
    .dropdown-option {
        padding: 16px 12px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .ready-to-start {
        padding: 3rem 0;
    }
    
    .ready-to-start h2 {
        font-size: 2rem;
    }
    
    .ready-to-start p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .why-choose-section {
        padding: 1.5rem;
    }
    
    .submit-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .submit-btn:hover::before {
        left: -100%;
    }
}

/* ===================================
   FOCUS STATES FOR KEYBOARD NAVIGATION
   =================================== */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.dropdown-selected:focus,
.submit-btn:focus,
.cta-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===================================
   LOADING STATES
   =================================== */
.contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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