/* contacto.css — Contact page specific styles: hero, info cards, form, and map */

/* =============================================
   CONTACT PAGE
   ============================================= */

/* Contact Hero — same structure as home hero (3-column layout) */
.contact-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    overflow: hidden;
}

/* Reuse hero-kanji-watermark from home.css but allow contact-specific overrides */
.contact-kanji {
    /* inherits .hero-kanji-watermark styles from home.css */
}

/* Flex chain for 100vh constraint */
.contact-hero .hero-layout {
    flex-grow: 1;
    display: flex;
    min-height: 0;
}

.contact-hero .hero-col-center {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
}

/* Push branches below the header on contact page */
.contact-hero .hero-col-left {
    padding-top: 18%;
}

.contact-hero .hero-col-right {
    padding-bottom: 5%;
}

/* Contact hero center column content */
.contact-hero-content {
    text-align: center;
    padding: 30px 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.contact-hero-title {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.contact-hero-content .subtitle-decoration {
    margin-bottom: 40px;
    align-self: center;
}

.contact-hero-content .subtitle-text {
    font-family: var(--font-primary);
}

/* 2-column grid inside the center column: image | form */
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    text-align: left;
    margin-top: 20px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.contact-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.contact-hero-form {
    color: var(--color-white);
}

/* Contact Info Cards */
.contact-page-info {
    padding: 40px 0;
    background-color: #f8f8f8;
    background-image: url('../images/Background-image.png');
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
}

.contact-page-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 450px;
    height: 450px;
    background-image: url('../images/Jackie-H1-class-list-bg-img-01.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.contact-page-info .container {
    position: relative;
    z-index: 1;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
}

.contact-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.1);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-card-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.contact-card-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-card-link {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-link:hover {
    color: var(--color-primary);
}

/* Form subtitle inside hero */
.contact-hero-form .contact-form-subtitle {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 30px;
}

/* Form Elements */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.contact-form .form-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.contact-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-input:focus {
    border-bottom-color: var(--color-primary);
}

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

.form-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-submit-btn {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
}

/* Form Messages (success/error) */
.form-messages {
    margin-bottom: 25px;
}

.form-message {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.form-message-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #5ddb7a;
}

.form-message-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
}

/* Contact Map Section */
.contact-map-section {
    line-height: 0;
}

.contact-map-full iframe {
    width: 100%;
    height: 450px;
    border: 0;
}
