/* ============================= */
/*      CONTACT PAGE STYLES      */
/* ============================= */

/* Contact Hero Section */
.contact-hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    color: var(--primary-light);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/top-view.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.contact-hero-section .container {
    position: relative;
    z-index: 1;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Contact Main Section */
.contact-main-section {
    background-color: var(--secondary-light);
    position: relative;
}

/* Contact Information Cards */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    transition: width 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
    width: 8px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.contact-card h5 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--primary-text);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-sky);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-header h3 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 2rem;
    position: relative;
}

.contact-form-header h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-form-header p {
    color: var(--primary-text);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--primary-light);
    color: var(--primary-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-sky);
    box-shadow: 0 0 0 3px rgba(39, 149, 196, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

/* Select Dropdown */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-sky);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--primary-text);
    cursor: pointer;
    line-height: 1.5;
}

.form-check-label a {
    color: var(--primary-sky);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.contact-submit-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    color: var(--primary-light);
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 149, 196, 0.4);
    background: linear-gradient(135deg, var(--primary-sky), var(--primary-dark));
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Messages */
.contact-messages {
    margin-top: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.contact-map-section {
    margin-top: 5px;
}

.contact-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Additional Info Section */
.contact-additional-info {
    background-color: var(--primary-light);
}

.additional-info-wrapper h3 {
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
}

.additional-info-wrapper h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    margin: 15px auto 0;
    border-radius: 2px;
}

.info-item {
    padding: 30px 20px;
    background: var(--secondary-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: var(--primary-light);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-sky));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-icon i {
    font-size: 2rem;
    color: var(--primary-light);
}

.info-item h5 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.info-item p {
    color: var(--primary-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .contact-form-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
    }
    
    .info-icon i {
        font-size: 1.5rem;
    }
    
    .contact-submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-hero-section {
        padding: 60px 0 40px;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .form-control {
        padding: 10px 14px;
    }
    
    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-item {
        padding: 20px 15px;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card,
.contact-form-wrapper,
.info-item {
    animation: fadeInUp 0.6s ease-out;
}

.contact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Loading state for form submission */
.contact-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation Styles */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠';
    font-size: 0.75rem;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.warning .current {
    font-weight: bold;
}

/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for Icons */
.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Focus States */
.form-control:focus {
    outline: none;
    border-color: var(--primary-sky);
    box-shadow: 0 0 0 3px rgba(39, 149, 196, 0.1);
    transform: translateY(-1px);
}

/* Improved Button States */
.contact-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 149, 196, 0.3);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .contact-hero-section,
    .contact-map-section,
    .contact-additional-info {
        display: none;
    }
    
    .contact-form-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
}