/* ================================================
   CONTACTO — contacto.css
   Page-specific styles only. Inherits variables
   and base from style.css
   ================================================ */

/* ------------------------------------------------
   MAIN SECTION — 2-col layout
------------------------------------------------ */
.ct-main-section {
    padding: 90px 0 110px;
    background: var(--off-white);
}

.ct-main-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2px;
    align-items: start;
}

/* ------------------------------------------------
   INFO PANEL (left column)
------------------------------------------------ */
.ct-info-panel {
    background: var(--deep-charcoal);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 100px;
}

.ct-info-block {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ct-info-block:first-child {
    padding-top: 0;
}

.ct-info-block--social {
    border-bottom: none;
    padding-bottom: 0;
}

.ct-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(139,26,26,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red-light);
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.3s;
}

.ct-info-block:hover .ct-info-icon {
    background: var(--accent-red);
    color: white;
}

.ct-info-title {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'DM Sans', sans-serif;
}

.ct-info-text {
    color: rgba(255,255,255,0.75);
    font-size: 14.5px;
    line-height: 1.75;
    font-weight: 300;
    margin: 0;
}

.ct-info-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 400;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.ct-info-link:hover {
    color: var(--accent-red-light);
}

.ct-info-note {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 300;
    margin: 3px 0 0;
    line-height: 1.5;
}

/* Hours grid */
.ct-hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 20px;
    margin-top: 4px;
}

.ct-hours-day {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 300;
    white-space: nowrap;
}

.ct-hours-time {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 400;
}

.ct-hours-highlight {
    color: var(--accent-red-light);
    font-weight: 500;
}

/* Social buttons */
.ct-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.ct-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
    padding: 4px 0;
}

.ct-social-btn svg {
    flex-shrink: 0;
}

.ct-social-btn:hover {
    color: var(--accent-red-light);
}

/* Legal badge */
.ct-legal-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 18px 20px;
    background: rgba(139,26,26,0.15);
    border-left: 2px solid var(--accent-red);
}

.ct-legal-badge svg {
    color: var(--accent-red-light);
    flex-shrink: 0;
}

.ct-legal-badge strong {
    display: block;
    font-size: 13px;
    color: white;
    font-weight: 500;
    margin-bottom: 3px;
}

.ct-legal-badge span {
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 300;
}

/* ------------------------------------------------
   FORM PANEL (right column)
------------------------------------------------ */
.ct-form-panel {
    background: white;
    padding: 56px 60px;
}

.ct-form-header {
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
}

.ct-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 10px;
    line-height: 1.2;
}

.ct-form-subtitle {
    color: var(--mid-text);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
}

/* Form layout */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */
.ct-label {
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mid-text);
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
}

.ct-required {
    color: var(--accent-red);
    margin-left: 2px;
}

/* Inputs, textarea, select */
.ct-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background: var(--off-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    color: var(--deep-charcoal);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    line-height: 1.5;
}

.ct-input::placeholder {
    color: #BDBDBD;
    font-weight: 300;
}

.ct-input:focus {
    border-color: var(--accent-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(139,26,26,0.07);
}

.ct-input.ct-error {
    border-color: #C0392B;
    background: #FDF6F5;
}

.ct-input.ct-valid {
    border-color: #27AE60;
}

.ct-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Select wrapper */
.ct-select-wrap {
    position: relative;
}

.ct-select {
    cursor: pointer;
    padding-right: 40px;
}

.ct-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mid-text);
    pointer-events: none;
    transition: transform 0.25s;
}

.ct-select:focus + .ct-select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--accent-red);
}

/* Field errors */
.ct-field-error {
    font-size: 12px;
    color: #C0392B;
    font-weight: 400;
    min-height: 16px;
    display: block;
    line-height: 1.3;
}

/* Checkbox */
.ct-form-check {
    gap: 6px;
}

.ct-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.ct-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ct-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s;
    position: relative;
}

.ct-checkbox:checked + .ct-checkbox-custom {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.ct-checkbox:checked + .ct-checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.ct-checkbox:focus + .ct-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(139,26,26,0.12);
}

.ct-checkbox-text {
    color: var(--mid-text);
    font-size: 13.5px;
    line-height: 1.6;
    font-weight: 300;
}

.ct-policy-link {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Form status message */
.ct-form-message {
    display: none;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    border-left: 3px solid;
}

.ct-form-message.success {
    background: #F0FAF4;
    border-color: #27AE60;
    color: #1E8449;
}

.ct-form-message.error {
    background: #FDF6F5;
    border-color: #C0392B;
    color: #922B21;
}

/* Submit button */
.ct-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 17px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
    position: relative;
}

.ct-submit-btn:hover:not(:disabled) {
    background: var(--accent-red-light);
}

.ct-submit-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.ct-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ct-btn-arrow {
    transition: transform 0.25s;
    flex-shrink: 0;
}

.ct-submit-btn:hover:not(:disabled) .ct-btn-arrow {
    transform: translateX(4px);
}

/* Loading spinner */
.ct-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: ct-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.ct-submit-btn.ct-loading .ct-btn-spinner {
    display: block;
}

.ct-submit-btn.ct-loading .ct-btn-arrow {
    display: none;
}

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

/* Disclaimer */
.ct-form-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--light-text);
    font-weight: 300;
    line-height: 1.5;
    margin-top: -8px;
}

.ct-form-disclaimer svg {
    color: var(--accent-red);
    flex-shrink: 0;
}

/* ------------------------------------------------
   MAP SECTION
------------------------------------------------ */
.ct-map-section {
    background: var(--deep-charcoal);
}

.ct-map-bar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ct-map-bar-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.ct-map-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.55);
    font-size: 13.5px;
    font-weight: 300;
}

.ct-map-info-item svg {
    color: var(--accent-red-light);
    flex-shrink: 0;
}

.ct-map-directions-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    text-decoration: none;
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 10px 20px;
    transition: background 0.25s;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.ct-map-directions-btn:hover {
    background: var(--accent-red-light);
}

.ct-map-embed {
    display: block;
    line-height: 0;
}

.ct-map-embed iframe {
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.4s;
}

.ct-map-embed:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* ------------------------------------------------
   QUICK CONTACT CARDS
------------------------------------------------ */
.ct-quick-section {
    padding: 0;
    background: white;
}

.ct-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 340px;
}

.ct-quick-card {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    
}

.ct-quick-card--dark {
    background: var(--deep-charcoal);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.ct-quick-card--red {
    background: var(--accent-red);
}

.ct-quick-card--light {
    background: var(--off-white);
    border-left: 1px solid var(--border-color);
}

.ct-quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    transition: height 0.4s ease;
}

.ct-quick-card--dark::before   { background: var(--accent-red); }
.ct-quick-card--red::before    { background: rgba(255,255,255,0.4); }
.ct-quick-card--light::before  { background: var(--accent-red); }

.ct-quick-card:hover::before {
    height: 100%;
}

.ct-quick-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    flex-shrink: 0;
}

.ct-quick-card--dark .ct-quick-icon {
    background: rgba(139,26,26,0.22);
    color: var(--accent-red-light);
}

.ct-quick-card--red .ct-quick-icon {
    background: rgba(255,255,255,0.15);
    color: white;
}

.ct-quick-card--light .ct-quick-icon {
    background: var(--accent-red-soft);
    color: var(--accent-red);
}

.ct-quick-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.2;
}

.ct-quick-card--dark h3,
.ct-quick-card--red h3 {
    color: white;
}

.ct-quick-card--light h3 {
    color: var(--deep-charcoal);
}

.ct-quick-card p {
    font-size: 14.5px;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 36px;
    flex: 1;
}

.ct-quick-card--dark p,
.ct-quick-card--red p {
    color: rgba(255,255,255,0.62);
}

.ct-quick-card--light p {
    color: var(--mid-text);
}

.ct-quick-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.ct-quick-card--dark .ct-quick-btn {
    background: var(--accent-red);
    color: white;
}

.ct-quick-card--dark .ct-quick-btn:hover {
    background: var(--accent-red-light);
}

.ct-quick-card--red .ct-quick-btn {
    background: white;
    color: var(--accent-red);
}

.ct-quick-card--red .ct-quick-btn:hover {
    background: var(--deep-charcoal);
    color: white;
}

.ct-quick-card--light .ct-quick-btn {
    background: var(--deep-charcoal);
    color: white;
}

.ct-quick-card--light .ct-quick-btn:hover {
    background: var(--accent-red);
}

/* ------------------------------------------------
   RESPONSIVE
------------------------------------------------ */
@media (max-width: 1100px) {
    .ct-main-grid {
        grid-template-columns: 320px 1fr;
    }

    .ct-form-panel {
        padding: 48px 44px;
    }

    .ct-info-panel {
        padding: 44px 36px;
    }
}

@media (max-width: 968px) {
    .ct-main-grid {
        grid-template-columns: 1fr;
    }

    .ct-info-panel {
        position: static;
        padding: 44px 40px;
    }

    .ct-quick-grid {
        grid-template-columns: 1fr;
    }

    .ct-quick-card {
        padding: 44px 36px;
    }

    .ct-quick-card--dark {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .ct-quick-card--light {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .ct-map-bar-inner {
        gap: 16px;
    }

    .ct-map-directions-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ct-main-section {
        padding: 60px 0 80px;
    }

    .ct-form-panel {
        padding: 36px 28px;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ct-form-title {
        font-size: 24px;
    }

    .ct-info-panel {
        padding: 36px 28px;
    }

    .ct-hours-grid {
        grid-template-columns: auto 1fr;
        gap: 4px 14px;
    }
}

@media (max-width: 480px) {
    .ct-quick-card {
        padding: 36px 24px;
    }

    .ct-quick-btn {
        width: 100%;
        text-align: center;
    }

    .ct-map-info-item:last-of-type {
        display: none;
    }
}