﻿/* Contact Page Styles with Purple/Pink Theme */

:root {
    --primary-color: #6f42c1;
    --primary-light: #8a63d2;
    --primary-dark: #5a359a;
    --accent-color: #d63384;
    --accent-light: #e85aa1;
    --accent-dark: #b02a5b;
    --secondary-color: #495057;
    --secondary-light: #6c757d;
    --secondary-dark: #343a40;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --white: #ffffff;
}

.contact-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

    .contact-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

    .hero-title .highlight {
        color: var(--accent-light);
        position: relative;
    }

        .hero-title .highlight::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.5);
        }

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: var(--light-gray);
    position: relative;
}

    .contact-form-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 10% 20%, rgba(111, 66, 193, 0.03) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(214, 51, 132, 0.03) 0%, transparent 50%);
    }

.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--secondary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

    .form-label i {
        color: var(--primary-color);
        width: 20px;
    }

.form-control, .form-select {
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
        outline: none;
    }

    .form-control::placeholder {
        color: var(--secondary-light);
    }

.input-group-text {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px 0 0 10px;
    font-weight: 600;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

    .input-group .form-control:focus {
        border-left: none;
    }

/* Validation Styles */
.text-danger {
    color: var(--accent-color) !important;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.field-validation-error {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.form-control.input-validation-error {
    border-color: var(--accent-color);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.3);
    position: relative;
    overflow: hidden;
}

    .btn-primary::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 0.5s ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(111, 66, 193, 0.4);
        color: white;
    }

    .btn-primary:disabled {
        background: var(--secondary-light);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-loading {
    display: inline-flex;
    align-items: center;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1), rgba(32, 201, 151, 0.05));
    color: #0f5132;
    border-left: 4px solid #20c997;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.1), rgba(214, 51, 132, 0.05));
    color: var(--accent-dark);
    border-left: 4px solid var(--accent-color);
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background: white;
}

.contact-info-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

    .contact-info-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(111, 66, 193, 0.15);
        border-color: var(--primary-light);
    }

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-info-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--secondary-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .contact-info-card a:hover {
        color: var(--accent-color);
    }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(111, 66, 193, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

    .loading-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
        color: white;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-form-card {
        padding: 30px 25px;
        margin: 0 15px;
        border-radius: 15px;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 60px 0;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .contact-info-card {
        margin-bottom: 30px;
    }

    .loading-overlay .spinner-border {
        width: 2rem;
        height: 2rem;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-form-card {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .btn-primary {
        width: 100%;
        padding: 16px;
    }

    .row > [class*="col-"] {
        margin-bottom: 20px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info-card {
    animation: fadeInUp 0.6s ease-out;
}

    .contact-info-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .contact-info-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .contact-info-card:nth-child(3) {
        animation-delay: 0.3s;
    }

/* Custom Select Styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
}

    .form-select:focus {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236f42c1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    }

/* Textarea Specific Styles */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Enhanced Input Group */
.input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

/* Success State Animation */
.alert-success {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
