/* General Form Styling for Kenfig Club Membership Form */

/* Base font and box-sizing for consistency */
.kc-signup-form-wrapper {
    font-family: 'Inter', sans-serif; /* Or any preferred clean sans-serif font */
    box-sizing: border-box;
    max-width: 800px; /* Max width for readability on large screens */
    margin: 20px auto; /* Center the form with some margin */
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kc-form * {
    box-sizing: border-box; /* Ensure consistent box model */
}

/* Headings */
.kc-form-title {
    font-size: 2.2em; /* Larger for main title */
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    text-transform: capitalize; /* Ensure consistent casing */
}

.kc-section-title {
    font-size: 1.6em; /* Section titles */
    color: #555;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.kc-subsection-title {
    font-size: 1.2em; /* Sub-section titles */
    color: #666;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.kc-form-description,
.kc-section-description {
    font-size: 0.95em;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Form Groups for spacing and layout */
.kc-form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Default to stacked */
    gap: 8px; /* Space between elements in a group */
}

.kc-form-group--inline {
    flex-direction: row; /* For side-by-side elements */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    gap: 15px; /* Space between inline elements */
}

/* Labels */
.kc-label {
    font-size: 0.9em;
    color: #444;
    font-weight: 600;
    margin-bottom: 5px;
    display: block; /* Ensures label takes full width */
    text-transform: capitalize;
}

.kc-checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    color: #444;
    line-height: 1.4;
}

.kc-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px; /* Align checkbox vertically */
}


/* Input Fields and Textareas */
.kc-input,
.kc-textarea {
    width: 100%; /* Full width by default */
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Inter', sans-serif; /* Explicitly set font for consistency */
}

.kc-input:focus,
.kc-textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.kc-textarea {
    min-height: 80px; /* Minimum height for textareas */
    resize: vertical; /* Allow vertical resizing */
}

/* Placeholder Styling for ALL inputs and textareas */
.kc-input::placeholder,
.kc-textarea::placeholder {
    font-family: 'Inter', sans-serif; /* Ensure consistent font */
    font-size: 1em; /* Ensure consistent size */
    color: #a0a0a0; /* Consistent light grey color for all placeholders */
    opacity: 1; /* Ensure full opacity across browsers */
}


/* Inline inputs within a group */
.kc-input--inline {
    flex-grow: 1; /* Allow inline inputs to grow and fill space */
    min-width: 120px; /* Minimum width before wrapping */
}

/* Radio Button Groups */
.kc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between radio options */
}

.kc-radio-group--stacked {
    flex-direction: column; /* Stack radio options vertically */
    gap: 8px;
}

.kc-radio-group label {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #555;
    text-transform: capitalize; /* Ensure consistent casing */
}

.kc-radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Membership Options specific styling */
.kc-membership-option {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%; /* Make each option take full width */
}

.kc-membership-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.kc-membership-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2); /* Slightly larger radio button */
}

.kc-membership-option strong {
    color: #333;
    font-weight: 700;
}


/* Buttons */
.kc-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none; /* Remove default button border */
}

.kc-button--primary {
    background-color: #007bff; /* Primary blue color */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.kc-button--primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

/* Form Message (for success/error messages) */
.kc-form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .kc-signup-form-wrapper {
        margin: 10px;
        padding: 15px;
    }

    .kc-form-title {
        font-size: 1.8em;
    }

    .kc-section-title {
        font-size: 1.4em;
    }

    .kc-form-group--inline {
        flex-direction: column; /* Stack inline elements on small screens */
        gap: 10px;
    }

    .kc-input--inline {
        width: 100%; /* Full width for inputs on small screens */
        min-width: unset;
    }

    .kc-radio-group {
        flex-direction: column; /* Stack radio options on small screens */
        gap: 8px;
    }

    .kc-button {
        width: 100%; /* Full width button on small screens */
        padding: 10px 15px;
        font-size: 1em;
    }
}

/* Utility class for screen readers only (visually hidden) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.kc-member-portal-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.kc-member-portal-content {
    flex: 1 1 auto;
    min-width: 0;
}

.kc-member-portal-nav {
    flex: 0 0 260px;
    margin-left: auto;
}

.kc-member-portal-nav__stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 24px;
}

.kc-member-portal-nav__link {
    display: block;
    padding: 12px 14px;
    border: 1px solid #d9e0e6;
    border-radius: 8px;
    background: #f7fafc;
    color: #1f2933;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kc-member-portal-nav__link:hover {
    background: #edf4ff;
    border-color: #007bff;
    transform: translateX(-2px);
}

.kc-member-portal-nav__link--active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

@media (max-width: 900px) {
    .kc-member-portal-layout {
        flex-direction: column;
    }

    .kc-member-portal-nav {
        width: 100%;
        flex: 1 1 auto;
        margin-left: 0;
    }

    .kc-member-portal-nav__stack {
        position: static;
    }
}
