/* Import DM Sans font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
    display: flex;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 850px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: auto;
}

/* Main Heading */
.mainheading {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* Section Heading */
.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

/* Labels (Bold, Main Label) */
.subheading {
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.label-wrapper {
    display: flex;
    align-items: baseline; /* Keeps label and description aligned */
    flex-wrap: wrap;
    gap: 5px; /* Small spacing between label and description */
}

.description {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    line-height: 1.2;
}

/* Input Fields & Textarea */
.mainstyle {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
    margin-bottom: 10px;
    outline: none;
    transition: border 0.3s ease-in-out;
}

.mainstyle:focus {
    border-color: #0073e6;
}

/* Match Pulldown Fields with Other Fields */
select.mainstyle {
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* File Upload Styling */
input[type="file"] {
    padding: 5px;
    background: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Submit Button */
.submit-button {
    background: #0073e6;
    color: white;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    width: 100%;
    margin-top: 10px;
}

.submit-button:hover {
    background: #005bb5;
}

/* Radio Buttons Layout */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 25px;
    margin-bottom: 15px;
    margin-top: 5px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.radio-option {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    gap: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.radio-option input[type="radio"] {
    transform: scale(1.3);
    margin-right: 4px;
    margin-top: 0px;
}

/* Ensure the logo and event name appear above the form */
.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Logo & Event Name */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
}

.event-logo {
    max-width: 200px;
    height: auto;
}

.event-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 5px;
}

/* Key Learning Objectives */
.klo-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 3px;
    width: 100%;
}

.klo-item {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-bottom: -6px;
}

.klo-number {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    min-width: 18px;
}

.full-width {
    flex-grow: 1;
    width: 100%;
    margin-bottom: -6px;
    padding: 8px 10px;
}

/* FORM ROW (Ensures Alignment & Even Sizing) */
.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: -6px; /* Match KLO spacing */
}

/* Ensure title dropdown is properly sized */
.title-dropdown {
    width: 110px; /* Keeps title dropdown smaller */
    min-width: 90px;
}

/* Standardized Two-Field Group (Ensures Consistent Height & Layout) */
.two-field-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.two-field-group input,
.two-field-group select {
    flex: 1; /* Ensures equal width */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    height: 20px; /* Ensures uniform height across all fields */
}

/* Ensure Organisation & Role Are Same Width as Country Line */
.org-role-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.org-role-group input {
    flex: 1; /* Equal width */
    min-width: 50%;
    height: 42px; /* Ensure same height */
}

/* Country & State Dropdown Group */
.location-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.location-group select {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.permission-wrapper {
    display: flex;
    align-items: flex-start; /* Keeps text aligned properly */
    flex-wrap: wrap; /* Allows text to break naturally */
    gap: 6px;
    text-align: left;
    width: 100%;
}

.permission-wrapper .subheading {
    white-space: nowrap; /* Ensures label stays in place */
    flex-shrink: 0; /* Prevents it from shrinking */
}

.permission-wrapper .description {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    line-height: 1.2;
    flex-grow: 1;
    margin-left: 0; /* Ensures text aligns to the left */
    text-indent: 0; /* Removes unwanted indenting */
}
.speaker-entry {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.speaker-entry input, .speaker-entry select, .speaker-entry textarea {
    width: 100%;
}

.remove-speaker {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.add-speaker {
    background: #0073e6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
