/* /public_html/home/join_us/join_us.css */

/* Wrapper similar to enquiry card width + spacing */
.join-page-shell {
    max-width: 960px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}

/* Card look cloned from home enquiry card */
.join-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
    padding: 1.9rem 2rem 2rem;
    border: 1px solid rgba(255,255,255,0.6);
}

/* Title + subtitle same as enquiry card */
.join-card .card-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a0a0a;
}

.join-card .card-subtitle {
    margin: 0 0 1.4rem;
    font-size: 0.92rem;
    color: #4b5563;
}

/* Two-column grid on desktop, one column on mobile */
.join-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.4rem;
}

.join-form-grid .form-field {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #374151;
}

.join-form-grid .form-field.full {
    grid-column: 1 / -1;
}

/* Inputs same look as enquiry card */
.join-form-grid .form-field label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.join-form-grid .form-field input,
.join-form-grid .form-field select,
.join-form-grid .form-field textarea {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.join-form-grid .form-field input:focus,
.join-form-grid .form-field select:focus,
.join-form-grid .form-field textarea:focus {
    border-color: #d50000;
    box-shadow: 0 0 0 3px rgba(213,0,0,0.1);
    background: #fff;
}

.join-form-grid textarea {
    resize: vertical;
    min-height: 110px;
}

/* Help text under mobile/resume fields */
.join-help {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Alerts (errors / success) */
.join-alert {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.join-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.join-alert.success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Submit button row */
.join-actions {
    margin-top: 1.6rem;
    text-align: right;
}


/* ---------- Mobile tweaks (match home-page feel) ---------- */
@media (max-width: 900px) {
    .join-page-shell {
        margin: 1.8rem auto 2.5rem;
        padding: 0 1rem;
    }

    .join-card {
        padding: 1.6rem 1.4rem 1.8rem;
        border-radius: 20px;
    }

    .join-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .join-form-grid .form-field.full {
        grid-column: 1 / 2;
    }

    .join-actions {
        margin-top: 1.4rem;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .join-card .card-title {
        font-size: 1rem;
    }

    .join-card .card-subtitle {
        font-size: 0.9rem;
    }
}
