/* CEGSA Custom Styles */

/* Feature Cards - Clickable Links */
a.feature-card {
    display: block;
    float: left;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.feature-card:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card:hover i.fa {
    transform: scale(1.1);
}

.feature-card i.fa {
    transition: transform 0.2s ease;
}

.feature-card h4 {
    color: #333;
}

.feature-card:hover h4 {
    color: #1bb3e9;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Ensure clicks pass through to the anchor */
a.feature-card * {
    pointer-events: none;
}

a.feature-card {
    pointer-events: auto;
}

/* Adjust grid for 4 cards */
.modular-row.features .feature {
    width: 25%;
}

@media (max-width: 900px) {
    .modular-row.features .feature {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .modular-row.features .feature {
        width: 100%;
    }
}

/* ===== Footer ===== */

/* Override Antimatter's fixed-height absolute footer */
#body {
    padding-bottom: 2rem !important;
}

#footer {
    position: relative !important;
    height: auto !important;
    bottom: auto !important;
    text-align: left !important;
    padding: 0 2rem 0;
}

#footer .totop {
    position: relative !important;
    bottom: auto !important;
    text-align: center;
    padding: 1rem 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: flex-start;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: #fff !important;
    text-decoration: none;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    padding: 0.75rem 0 1.25rem;
}

/* ===== Membership Page ===== */

.membership-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.membership-hero {
    padding: 2rem 0 1rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}

.membership-hero h1 {
    margin: 0;
}

.membership-section {
    margin-bottom: 3rem;
}

.membership-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Membership type cards */
.membership-type-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.membership-type-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 220px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fafafa;
}

.membership-type-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #1bb3e9;
}

.membership-type-icon {
    font-size: 1.8rem;
    color: #1bb3e9;
}

.membership-type-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Process steps */
.membership-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1bb3e9;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.step-content p {
    margin: 0.25rem 0 0;
    color: #555;
    font-size: 0.9rem;
}

/* Fee Calculator */
.calculator-form {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.calc-field {
    margin-bottom: 1rem;
}

.calc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.calc-field select {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
}

.calc-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
    font-weight: normal;
    cursor: pointer;
}

.calculator-result {
    max-width: 320px;
}

.fee-breakdown {
    width: 100%;
    border-collapse: collapse;
}

.fee-breakdown td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}

.fee-breakdown td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fee-breakdown .result-total td {
    border-top: 2px solid #333;
    border-bottom: none;
    padding-top: 0.75rem;
    font-size: 1.05rem;
}

.hidden {
    display: none;
}

/* Download CTA */
.membership-download-btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
}

@media (max-width: 600px) {
    .membership-type-card {
        flex: 1 1 100%;
    }
}

/* ===== Form Styling ===== */

/* Spacing between form fields */
.form-field {
    margin-bottom: 1.2rem;
}

/* Labels */
.form-field .form-label label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: inline-block;
}

/* Text inputs, textareas, selects */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="date"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #1bb3e9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(27, 179, 233, 0.15);
}

/* Checkbox fields - tighter spacing */
.form-field[data-grav-field="checkbox"] {
    margin-bottom: 0.4rem;
}

.form-field[data-grav-field="checkbox"] label {
    font-weight: normal;
}

/* Checkboxes group (contact permissions etc) */
.form-field .checkboxes label {
    font-weight: normal;
    margin-right: 1rem;
}

/* Declaration checkbox - smaller text for long labels */
.form-field[data-grav-field="checkbox"] .form-label label {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Buttons */
.form-field .button-bar {
    margin-top: 1.5rem;
}

.form-field .button-bar .button {
    padding: 0.6rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
}
