/* Contacts Page Styles */

/* CSS Variables */
:root {
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --purple-500: #8b5cf6;
}

/* Page Header */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    font-family: 'Racing Sans One', cursive;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3.5rem;
    }
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto;
}

.page-header-highlight {
    color: var(--amber-400);
}

/* UCI Stripe */
.uci-stripe {
    height: 4px;
    background: linear-gradient(90deg,
        #0033A0 0%, #0033A0 20%,
        #C8102E 20%, #C8102E 40%,
        #000000 40%, #000000 60%,
        #FFD100 60%, #FFD100 80%,
        #009639 80%, #009639 100%
    );
}

/* Quick Contact Bar */
.quick-contact-bar {
    background: var(--red-600);
    padding: 1rem 1.5rem;
}

.quick-contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.quick-contact-item:hover {
    opacity: 0.9;
}

.quick-contact-item .icon {
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

.section-gray {
    background: var(--gray-50);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--red-600), var(--red-700));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.section-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--red-600);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Racing Sans One', cursive;
    font-size: 2.25rem;
    letter-spacing: 0.02em;
    color: var(--gray-800);
    margin: 0;
}

/* Contact Container */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--gray-200);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.form-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--red-600);
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--red-600);
    color: var(--white);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--red-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.submit-btn svg {
    flex-shrink: 0;
}

/* Contact Info Sidebar */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.info-icon.green {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
}

.info-icon.amber {
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

.info-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.info-card-body {
    padding: 1.25rem;
}

.address {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail .label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-detail a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: var(--red-600);
}

/* Office Hours */
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.hours-row:last-of-type {
    border-bottom: none;
}

.hours-row .day {
    color: var(--gray-600);
}

.hours-row .time {
    font-weight: 600;
    color: var(--gray-800);
}

.hours-row.closed .time {
    color: var(--red-600);
}

.hours-note {
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.5;
}

/* Social Card */
.social-card {
    padding: 1.25rem;
}

.social-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.twitter { background: #000000; }
.social-link.youtube { background: #ff0000; }
.social-link.strava { background: #fc4c02; }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Map Section */
.map-section {
    background: var(--gray-800);
    padding: 2rem 1.5rem 0;
}

.map-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.map-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem 0;
}

.map-header p {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin: 0;
}

.contact-map {
    height: 400px;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

/* FAQ Section */
.faq-container {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr 1fr;
    }
}

.faq-category h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--red-600);
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* FAQ CTA */
.faq-cta {
    margin-top: 3rem;
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .faq-cta {
        flex-direction: row;
        text-align: left;
    }
}

.faq-cta-content {
    flex: 1;
}

.faq-cta-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
}

.faq-cta-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

.faq-cta-btn {
    padding: 0.875rem 1.5rem;
    background: var(--red-600);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.faq-cta-btn:hover {
    background: var(--red-700);
}

/* Emergency Section */
.emergency-section {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    padding: 2rem 1.5rem;
}

.emergency-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .emergency-container {
        flex-direction: row;
        text-align: left;
    }
}

.emergency-icon {
    font-size: 3rem;
}

.emergency-content {
    flex: 1;
}

.emergency-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem 0;
}

.emergency-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.emergency-number {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .emergency-number {
        align-items: flex-end;
    }
}

.emergency-number a {
    font-family: 'Racing Sans One', cursive;
    font-size: 1.75rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.emergency-number span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}