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

/* Page Header */
.page-header {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    margin-top: 80px;
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(34, 34, 36, 0.9) 0%,
        rgba(18, 17, 19, 0.9) 100%
    ),
    url('../images/contact-header-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.page-header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.page-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.page-title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Content */
.contact-content {
    padding: 8rem 0;
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Contact Info */
.contact-info {
    padding-right: 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: #333;
    line-height: 1.2;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
    color: #764ba2;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Hide honeypot field for spam protection */
.hidden {
    display: none;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #dc3545;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    appearance: none;
    padding-right: 3rem;
}

/* Checkbox Styling */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkbox-mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 2px;
}

.checkbox-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-mark {
    background-color: #667eea;
    border-color: #667eea;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
    opacity: 1;
}

.form-checkbox input[type="checkbox"]:focus + .checkbox-mark {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    color: #666;
}

.form-link {
    color: #667eea;
    text-decoration: none;
}

.form-link:hover,
.form-link:focus {
    text-decoration: underline;
}

/* Form Error Styling */
.form-error {
    display: block;
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Form Submit Button */
.form-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.form-submit .btn-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.form-submit .btn-loading svg {
    animation: spin 1s linear infinite;
}

.form-submit.loading .btn-text {
    opacity: 0;
}

.form-submit.loading .btn-loading {
    opacity: 1;
}

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

/* Form Success Message */
.form-success {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-top: 1rem;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

/* Contact Map */
.contact-map {
    margin: 2.5rem 0;
}

.contact-items-top {
    margin-bottom: 0;
}

.contact-items-bottom {
    margin-top: 0;
}

.contact-map .map-embed {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.contact-map .map-embed iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-caption {
    text-align: center;
    margin: 0;
}

.map-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.map-link:hover,
.map-link:focus {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        padding-right: 0;
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        min-height: 50vh;
        margin-top: 70px;
    }
    
    .contact-content {
        padding: 4rem 0;
    }
    
    .contact-form-container {
        padding: 1.25rem;
    }
    
    .form-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-grid {
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .contact-items {
        gap: 2rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-map .map-embed iframe {
        height: 250px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .page-title-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .form-input,
    .form-select,
    .form-textarea,
    .checkbox-mark {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-form-container {
        border: 2px solid #333;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 3px;
    }
    
    .checkbox-mark {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .contact-map,
    .contact-form-container {
        display: none;
    }
    
    .contact-content {
        padding: 2rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

