/**
 * ============================================
 * REDUCA - CONTACT PAGE STYLES
 * ============================================
 *
 * Styles for contact page
 * Follows Reduca design patterns
 *
 * @version 1.0.0
 */

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #636e72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: var(--color-primary, #FF6B35);
}

.breadcrumb__link svg {
    flex-shrink: 0;
}

.breadcrumb__separator {
    color: #b2bec3;
}

.breadcrumb__current {
    color: #2d3436;
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 300px);
}

/* ============================================
   HEADER
   ============================================ */
.contact-header {
    margin-bottom: 40px;
    text-align: center;
}

.contact-header__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary, #FF6B35);
    margin: 0 0 8px 0;
}

.contact-header__subtitle {
    font-size: 16px;
    color: #636e72;
    margin: 0;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert--error {
    background: #ffe5e5;
    border: 1px solid #ffcccc;
    color: #c0392b;
}

.alert--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert svg {
    flex-shrink: 0;
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* ============================================
   CARD
   ============================================ */
.contact-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.contact-card__header {
    padding: 24px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-card__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.contact-card__title svg {
    color: var(--color-primary, #FF6B35);
    flex-shrink: 0;
}

/* ============================================
   FORM
   ============================================ */
.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.required {
    color: var(--color-primary, #FF6B35);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #2d3436;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: white;
    border-color: var(--color-primary, #FF6B35);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b2bec3;
}

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

.form-hint {
    display: block;
    font-size: 13px;
    color: #636e72;
    margin-top: 6px;
}

.form-error {
    display: block;
    font-size: 13px;
    color: #c0392b;
    margin-top: 6px;
    min-height: 18px;
}

/* ============================================
   FORM ACTIONS
   ============================================ */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn svg {
    flex-shrink: 0;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary, #FF6B35), #FF8556);
    color: white;
    border-color: var(--color-primary, #FF6B35);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #e55a2b, #e5743d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.btn--primary:disabled {
    background: #b2bec3;
    border-color: #b2bec3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   SIDEBAR
   ============================================ */
.contact-sidebar {
    position: sticky;
    top: 100px;
}

.info-box {
    padding: 20px;
}

.info-box__text {
    font-size: 15px;
    color: #2d3436;
    line-height: 1.6;
    margin: 0;
}

.info-box__label {
    font-size: 13px;
    color: #636e72;
    margin: 6px 0 0 0;
}

.info-link {
    color: var(--color-primary, #FF6B35);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.map-container iframe {
    display: block;
    border: none;
}

/* ============================================
   LOADING STATE
   ============================================ */
.btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 0;
    }

    .contact-header__title {
        font-size: 24px;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-card__header {
        padding: 20px;
    }

    .contact-card__title {
        font-size: 18px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

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

.alert {
    animation: fadeIn 0.3s ease;
}
