/* Reset & Base Setup */
:root {
    --primary-orange: #f58426;
    /* Match header orange */
    --border-orange: #f8c08a;
    /* Match light orange borders */
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --font-family: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    /* Keep it adaptive to its parent container */
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Agenda Main Container */
.agenda-container {
    width: 100%;
    max-width: 100%;
    /* For iframe fitting */
    display: flex;
    flex-direction: column;
    /* Optional: Provide an outer border matching the image */
    border: 1px solid var(--border-orange);
}

/* Header */
.agenda-header {
    background-color: var(--primary-orange);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-orange);
}

.agenda-header h1 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Adaptive Events Grid */
.events-grid {
    display: grid;
    /* This creates the automatic columns: expands based on width, minimum 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Table-like borders achieved through gap and background color */
    background-color: var(--border-orange);
    gap: 1px;
}

/* Individual Event Card */
.event-card {
    background-color: var(--bg-white);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background-color 0.2s ease;
}

.event-card:hover {
    background-color: #fafafa;
}

/* Card Content Typography */
.event-date {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
}

.event-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes the button to the bottom if cards have different heights */
}

/* Action Button */
.event-action {
    margin-top: auto;
}

.btn-more {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-orange);
    background-color: transparent;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-more:hover {
    background-color: var(--border-orange);
    color: var(--bg-white);
}

/* For extremely narrow iframe widths (less than 280px) ensure it doesn't overflow */
@media (max-width: 320px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 1.5rem;
    }

    .event-date {
        font-size: 1.25rem;
    }
}

/* --- Form Styles (solicitar.php) --- */
.form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-family);
    color: var(--text-dark);
}

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

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #666666;
    /* Gray text for title as in mockup */
    position: relative;
    padding-bottom: 0.5rem;
}

.form-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #d8a05b;
    /* Golden underline */
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.single>* {
    flex: 1;
}

.form-row.double>* {
    flex: 1;
}

.form-row.double-asymmetric .grow-2 {
    flex: 2;
}

.form-row.double-asymmetric .grow-1 {
    flex: 1;
}

/* Inputs and Textareas */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="date"],
.form-container textarea {
    width: 100%;
    background-color: #f1f1f1;
    /* Light gray from mockup */
    border: none;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    color: #333333;
    font-family: var(--font-family);
    outline: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.form-container input:focus,
.form-container textarea:focus {
    background-color: #e8e8e8;
    box-shadow: 0 0 0 2px rgba(216, 160, 91, 0.3);
}

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

/* Placeholder color */
.form-container input::placeholder,
.form-container textarea::placeholder {
    color: #888888;
}

/* Consent Checkbox */
.form-consent {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 2rem;
    text-align: center;
}

.form-consent label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Action Buttons */
.form-actions {
    text-align: center;
}

.btn-submit {
    background-color: #cb9b59;
    /* Golden/Orange button */
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 400px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-submit:hover:not(:disabled) {
    background-color: #b38548;
}

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

/* Utility / Feedback */
.mt-4 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.feedback-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feedback-message.success {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.feedback-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Responsive adjustments for the form */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
}