
.aps-dynamic-form-wrapper {
    width: 100%;
    font-family: "Quicksand", sans-serif;
}

.aps-form-container {
    max-width: clamp(500px, 60vw, 800px);
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.aps-form-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    margin-bottom: clamp(8px, 1vw, 12px);
    color: #333;
}

.aps-form-description {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #666;
    margin-bottom: clamp(16px, 2vw, 24px);
    line-height: 1.6;
}



.aps-form-fields-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
    width: 100%;
}

.aps-form-gap-compact { gap: clamp(10px, 1.2vw, 16px) clamp(6px, 0.8vw, 10px); }
.aps-form-gap-normal { gap: clamp(12px, 1.5vw, 20px); }
.aps-form-gap-relaxed { gap: clamp(20px, 2.5vw, 32px); }
.aps-form-gap-spacious { gap: clamp(28px, 3.5vw, 40px); }

.aps-form-grid-item {
    min-width: 0;
}

.aps-form-grid-item > * {
    width: 100%;
}

.aps-form-label {
    display: block;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    color: #444;
    margin-bottom: clamp(4px, 0.4vw, 6px);
}

.aps-required {
    color: #e74c3c;
    margin-left: 2px;
}

.aps-form-control {
    width: 100%;
    padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 14px);
    font-size: clamp(14px, 1.2vw, 16px);
    font-family: "Quicksand", sans-serif;
    border: clamp(1px, 0.15vw, 2px) solid #ccc;
    border-radius: clamp(4px, 0.5vw, 6px);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.aps-form-control:focus {
    outline: none;
    border-color: #2c8c99;
    box-shadow: 0 0 0 clamp(2px, 0.3vw, 3px) rgba(44, 140, 153, 0.15);
}

.aps-form-control-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 clamp(2px, 0.3vw, 3px) rgba(231, 76, 60, 0.15) !important;
}

.aps-form-textarea {
    resize: vertical;
    min-height: clamp(80px, 10vw, 120px);
}

.aps-form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(10px, 1vw, 14px) center;
    padding-right: clamp(30px, 3vw, 40px);
}


.aps-form-date {
    cursor: pointer;
}

.aps-form-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.aps-form-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


.aps-form-options {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 0.8vw, 10px);
    margin-top: clamp(4px, 0.4vw, 6px);
}

.aps-form-checkbox-label,
.aps-form-radio-label {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 8px);
    font-size: clamp(13px, 1.1vw, 15px);
    cursor: pointer;
    padding: clamp(4px, 0.4vw, 6px) clamp(8px, 1vw, 12px);
    border-radius: clamp(3px, 0.4vw, 5px);
    transition: background 0.15s;
}

.aps-form-checkbox-label:hover,
.aps-form-radio-label:hover {
    background: #f5f5f5;
}

.aps-form-checkbox,
.aps-form-radio {
    width: clamp(16px, 1.4vw, 20px);
    height: clamp(16px, 1.4vw, 20px);
    accent-color: #293374;
}


.aps-form-image-options {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.2vw, 16px);
    margin-top: clamp(6px, 0.6vw, 10px);
}

.aps-image-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(120px, 14vw, 180px);
    padding: clamp(8px, 1vw, 12px);
    border: clamp(2px, 0.2vw, 2px) solid #ddd;
    border-radius: clamp(6px, 0.7vw, 10px);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
}

.aps-image-option-card:hover {
    border-color: #2c8c99;
    box-shadow: 0 clamp(2px, 0.3vw, 4px) clamp(8px, 1vw, 12px) rgba(44, 140, 153, 0.12);
    transform: translateY(clamp(-1px, -0.1vw, -2px));
}

.aps-image-option-card.aps-image-option-selected {
    border-color: #2c8c99;
    background: rgba(44, 140, 153, 0.05);
    box-shadow: 0 0 0 clamp(2px, 0.2vw, 3px) rgba(44, 140, 153, 0.25);
}

.aps-image-option-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.aps-image-option-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: clamp(4px, 0.5vw, 6px);
    margin-bottom: clamp(6px, 0.6vw, 10px);
}

.aps-image-option-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aps-image-option-label {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    color: #444;
    line-height: 1.3;
}

.aps-image-option-check {
    position: absolute;
    top: clamp(4px, 0.4vw, 8px);
    right: clamp(4px, 0.4vw, 8px);
    width: clamp(20px, 1.8vw, 26px);
    height: clamp(20px, 1.8vw, 26px);
    background: #2c8c99;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 1vw, 14px);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.aps-image-option-selected .aps-image-option-check {
    opacity: 1;
    transform: scale(1);
}


.aps-form-file {
    padding: clamp(6px, 0.8vw, 10px);
}

.aps-form-hint {
    display: flex;
    gap: clamp(8px, 1vw, 12px);
    font-size: clamp(11px, 0.9vw, 13px);
    color: #888;
    margin-top: clamp(2px, 0.3vw, 4px);
}


.aps-form-heading {
    margin: clamp(4px, 0.5vw, 8px) 0;
}

.aps-form-section-title {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(4px, 0.4vw, 6px);
}

.aps-form-section-desc {
    font-size: clamp(13px, 1.1vw, 15px);
    color: #666;
    margin-bottom: clamp(6px, 0.6vw, 10px);
}

.aps-form-divider {
    border: none;
    border-top: clamp(1px, 0.15vw, 2px) solid #e0e0e0;
    margin: clamp(8px, 1vw, 12px) 0;
}


.aps-field-error {
    display: none;
    font-size: clamp(12px, 1vw, 14px);
    color: #e74c3c;
    margin-top: clamp(2px, 0.3vw, 4px);
}


.aps-condition-hidden {
    display: none !important;
}


.aps-participant-group {
    padding: clamp(12px, 1.5vw, 20px);
    border: clamp(1px, 0.15vw, 2px) solid #e0e0e0;
    border-radius: clamp(6px, 0.7vw, 10px);
    background: #fafafa;
}

.aps-participant-group-title {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(12px, 1.2vw, 16px);
}

.aps-participant-entry {
    padding: clamp(12px, 1.5vw, 18px);
    margin-bottom: clamp(10px, 1.2vw, 16px);
    border: clamp(1px, 0.1vw, 1px) solid #ddd;
    border-radius: clamp(4px, 0.5vw, 8px);
    background: #fff;
}

.aps-participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(10px, 1vw, 14px);
    padding-bottom: clamp(6px, 0.6vw, 10px);
    border-bottom: 1px solid #eee;
}

.aps-participant-number {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    color: #293374;
}

.aps-participant-remove-btn {
    padding: clamp(4px, 0.4vw, 6px) clamp(10px, 1vw, 14px);
    font-size: clamp(12px, 1vw, 14px);
    font-family: "Quicksand", sans-serif;
    color: #e74c3c;
    background: transparent;
    border: clamp(1px, 0.1vw, 1px) solid #e74c3c;
    border-radius: clamp(3px, 0.4vw, 5px);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.aps-participant-remove-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.aps-participant-add-btn {
    display: block;
    width: 100%;
    padding: clamp(8px, 1vw, 12px);
    font-size: clamp(14px, 1.2vw, 16px);
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    color: #2c8c99;
    background: transparent;
    border: clamp(1px, 0.15vw, 2px) dashed #2c8c99;
    border-radius: clamp(4px, 0.5vw, 6px);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.aps-participant-add-btn:hover {
    background: #2c8c99;
    color: #fff;
}

/* ========== Form Appearance ========== */

.aps-form-container.aps-form-elevated {
    box-shadow: 0 clamp(2px, 0.4vw, 4px) clamp(10px, 2vw, 20px) rgba(0, 0, 0, 0.08),
                0 clamp(1px, 0.2vw, 2px) clamp(4px, 0.8vw, 8px) rgba(0, 0, 0, 0.04);
    border: clamp(1px, 0.15vw, 2px) solid #ECEBE8;
    border-radius: clamp(8px, 1vw, 14px);
}

.aps-form-container.aps-form-padding-none {
    padding: 0;
}

.aps-form-container.aps-form-padding-compact {
    padding: clamp(0.5rem, 1.2vw, 0.8rem) clamp(0.8rem, 1.5vw, 1.2rem);
}

.aps-form-container.aps-form-padding-spacious {
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
}

/* ========== Submit Button ========== */

.aps-form-submit {
    margin-top: clamp(16px, 2vw, 24px);
}

.aps-form-submit-center {
    text-align: center;
}

.aps-form-submit-right {
    text-align: right;
}

.aps-form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.6vw, 10px);
    padding: clamp(10px, 1.2vw, 14px) clamp(24px, 3vw, 36px);
    font-size: clamp(14px, 1.3vw, 17px);
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    color: #fff;
    background: #2c8c99;
    border: none;
    border-radius: clamp(20px, 2vw, 30px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.aps-form-submit-btn svg {
    width: clamp(16px, 1.4vw, 22px);
    height: clamp(16px, 1.4vw, 22px);
    flex-shrink: 0;
}

.aps-form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 clamp(3px, 0.4vw, 6px) clamp(10px, 1.2vw, 16px) rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.aps-form-submit-btn:active {
    transform: translateY(0);
}

.aps-form-submit-btn:disabled {
    background: #aaa !important;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
    transform: none;
}

.aps-form-result {
    display: none;
}

.aps-form-result-content {
    max-width: clamp(500px, 60vw, 800px);
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.aps-form-success {
    padding: clamp(16px, 2vw, 24px);
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: clamp(4px, 0.5vw, 6px);
    color: #155724;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
}

.aps-form-error {
    padding: clamp(16px, 2vw, 24px);
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: clamp(4px, 0.5vw, 6px);
    color: #721c24;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
}

.aps-form-error-list {
    margin-top: clamp(8px, 1vw, 12px);
    padding-left: clamp(16px, 2vw, 24px);
}

.aps-form-error-list li {
    margin-bottom: clamp(2px, 0.3vw, 4px);
}


.aps-form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: clamp(16px, 3vw, 40px);
}

.aps-form-modal {
    position: relative;
    background: #fff;
    border-radius: clamp(8px, 1vw, 14px);
    width: 100%;
    max-width: clamp(500px, 60vw, 800px);
    max-height: 90vh;
    box-shadow: 0 clamp(8px, 1.5vw, 16px) clamp(30px, 4vw, 50px) rgba(0, 0, 0, 0.25);
    -webkit-animation: apsModalIn 0.25s ease-out;
    animation: apsModalIn 0.25s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aps-form-modal .aps-dynamic-form-modal {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.aps-form-modal-header {
    flex: 0 0 auto;
    padding: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 32px) clamp(8px, 1vw, 12px);
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: clamp(56px, 6vw, 72px);
}

.aps-form-modal-header .aps-form-title {
    margin: 0 0 clamp(4px, 0.5vw, 8px);
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.3;
}

.aps-form-modal-header .aps-form-description {
    margin: 0;
    font-size: clamp(13px, 1.1vw, 15px);
    color: #555;
    line-height: 1.5;
}

.aps-form-modal-header .aps-form-description p:last-child {
    margin-bottom: 0;
}

.aps-form-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 32px);
}

.aps-form-modal-footer {
    flex: 0 0 auto;
    padding: clamp(12px, 1.5vw, 18px) clamp(20px, 2.5vw, 32px);
    border-top: 1px solid #eee;
    background: #fafafa;
    margin: 0;
}

.aps-form-modal-result {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 32px);
}

.aps-form-modal-result .aps-form-result-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

@-webkit-keyframes apsModalIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(clamp(-20px, -2vw, -30px));
        transform: translateY(clamp(-20px, -2vw, -30px));
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes apsModalIn {
    from {
        opacity: 0;
        transform: translateY(clamp(-20px, -2vw, -30px));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aps-form-modal-close {
    position: absolute;
    top: clamp(10px, 1.2vw, 16px);
    right: clamp(10px, 1.2vw, 16px);
    width: clamp(30px, 2.5vw, 38px);
    height: clamp(30px, 2.5vw, 38px);
    background: transparent;
    border: none;
    font-size: clamp(20px, 2vw, 28px);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.aps-form-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.aps-form-modal-body {
    padding: clamp(8px, 1vw, 16px);
}

.aps-form-modal-trigger {
    cursor: pointer;
}


.aps-checkbox-rich-label {
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.5;
}

/* The Aps Text Editor wraps content in <p> — kill the default block margins so the
   label sits inline/aligned next to the checkbox instead of being pushed down. */
.aps-checkbox-rich-label p {
    margin: 0;
}

.aps-checkbox-rich-label p + p {
    margin-top: 0.4em;
}

.aps-checkbox-rich-label a {
    color: #2c8c99;
    text-decoration: underline;
}

.aps-checkbox-rich-label a:hover {
    color: #237580;
}


/* ========== Text-only Selection Cards ========== */

.aps-text-option-card {
    width: auto !important;
    min-width: clamp(80px, 10vw, 120px);
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 20px);
}

.aps-text-option-card .aps-image-option-label {
    font-size: clamp(13px, 1.1vw, 15px);
}


/* ========== Selection Indicator (visible radio/checkbox) ========== */

.aps-selection-show-indicator .aps-image-option-input {
    position: relative;
    opacity: 1;
    width: clamp(16px, 1.4vw, 20px);
    height: clamp(16px, 1.4vw, 20px);
    pointer-events: none;
    accent-color: #2c8c99;
    margin-bottom: clamp(4px, 0.4vw, 6px);
}

.aps-selection-show-indicator .aps-image-option-check {
    display: none;
}



.grid-col-1 { grid-column: span 1; }
.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-4 { grid-column: span 4; }
.grid-col-5 { grid-column: span 5; }
.grid-col-6 { grid-column: span 6; }
.grid-col-7 { grid-column: span 7; }
.grid-col-8 { grid-column: span 8; }
.grid-col-9 { grid-column: span 9; }
.grid-col-10 { grid-column: span 10; }
.grid-col-11 { grid-column: span 11; }
.grid-col-12 { grid-column: span 12; }



.aps-booking-layout {
    max-width: 100%;
}

.aps-booking-layout .aps-form-container {
    max-width: none;
    padding: 0;
}


.aps-date-select {
    width: 100%;
    margin-bottom: clamp(16px, 2vw, 24px);
    font-family: "Quicksand", sans-serif;
    position: relative;
}

.aps-date-select-pill {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
    padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.5vw, 18px);
    border: 2px solid var(--course-color, #D01F39);
    border-radius: clamp(8px, 0.8vw, 12px);
    background: #fff;
    cursor: default;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.aps-date-select-has-options {
    cursor: pointer;
}

.aps-date-select-has-options:hover {
    border-color: var(--course-color, #D01F39);
    box-shadow: 0 clamp(2px, 0.3vw, 4px) clamp(8px, 1vw, 12px) rgba(208, 31, 57, 0.15);
}

.aps-date-select-open {
    border-color: var(--course-color, #D01F39);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.aps-date-select-icon {
    height: clamp(16px, 1.6vw, 22px);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.aps-date-select-name {
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 700;
    color: var(--course-color, #D01F39);
    white-space: nowrap;
}

.aps-date-select-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 1.5vw, 24px);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    color: #333;
}

.aps-date-select-info span {
    white-space: nowrap;
}

.aps-date-select-chevron {
    font-size: clamp(12px, 1vw, 14px);
    color: #666;
    transition: transform 0.2s;
    margin-left: auto;
}

.aps-date-select-open .aps-date-select-chevron {
    transform: rotate(180deg);
}

.aps-date-select-check {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--course-color, #D01F39);
    margin-left: auto;
}

.aps-date-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 2px solid var(--course-color, #D01F39);
    border-top: none;
    border-bottom-left-radius: clamp(8px, 0.8vw, 12px);
    border-bottom-right-radius: clamp(8px, 0.8vw, 12px);
    box-shadow: 0 clamp(4px, 0.6vw, 8px) clamp(12px, 1.5vw, 20px) rgba(0, 0, 0, 0.1);
    max-height: clamp(180px, 20vw, 260px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.aps-date-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 1.5vw, 24px);
    padding: clamp(8px, 1vw, 12px) clamp(16px, 2vw, 24px);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.aps-date-select-option:hover {
    background: #fdf2f3;
}

.aps-date-select-option-active {
    background: #fdf5f6;
}

.aps-date-select-option-check {
    margin-left: auto;
    color: var(--course-color, #D01F39);
    font-size: clamp(14px, 1.2vw, 16px);
}

.aps-date-select-option-date {
    white-space: nowrap;
    flex: 1;
}

.aps-date-select-option-time {
    white-space: nowrap;
    text-align: center;
    flex: 1;
}

.aps-date-select-option-loc {
    white-space: nowrap;
    text-align: right;
    flex: 1;
}

.aps-booking-body {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    align-items: flex-start;
}

.aps-booking-main {
    flex: 1;
    min-width: 0;
}

.aps-booking-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--nav-total-height, 80px) + clamp(16px, 2vw, 24px));
    width: clamp(260px, 22vw, 340px);
    flex-shrink: 0;
}

.aps-sidebar-content {
    background: #f8f9fa;
    border: clamp(1px, 0.15vw, 2px) solid #e0e0e0;
    border-radius: clamp(8px, 0.8vw, 12px);
    padding: clamp(16px, 2vw, 24px);
    font-family: "Quicksand", sans-serif;
}

.aps-sidebar-title {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(12px, 1.2vw, 16px);
    padding-bottom: clamp(8px, 0.8vw, 12px);
    border-bottom: clamp(1px, 0.15vw, 2px) solid #e0e0e0;
}

.aps-sidebar-course-name {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    color: #444;
    margin-bottom: clamp(4px, 0.5vw, 8px);
}

.aps-sidebar-date {
    font-size: clamp(13px, 1.1vw, 15px);
    color: #666;
    margin-bottom: clamp(12px, 1.2vw, 16px);
}

.aps-sidebar-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(6px, 0.6vw, 10px) 0;
    font-size: clamp(13px, 1.1vw, 15px);
    color: #555;
}

.aps-sidebar-line-label {
    flex: 1;
}

.aps-sidebar-line-value {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.aps-sidebar-divider {
    border: none;
    border-top: clamp(1px, 0.15vw, 2px) solid #e0e0e0;
    margin: clamp(8px, 0.8vw, 12px) 0;
}

.aps-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(10px, 1vw, 14px) 0;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    color: #333;
}

.aps-sidebar-vat-note {
    font-size: clamp(11px, 0.9vw, 13px);
    color: #888;
    margin-top: clamp(4px, 0.4vw, 6px);
}

.aps-sidebar-discount-line {
    color: #27ae60;
}

.aps-sidebar-discount-line .aps-sidebar-line-value {
    color: #27ae60;
}

.aps-sidebar-vat-line .aps-sidebar-line-value {
    color: #555;
}

.aps-sidebar-loading {
    text-align: center;
    padding: clamp(20px, 2.5vw, 30px) 0;
    color: #999;
    font-size: clamp(13px, 1.1vw, 15px);
}

.aps-sidebar-hidden {
    display: none;
}


/* ── Book Page ── */

html:has(.aps-book-page) {
    overflow-y: scroll;
}

.aps-book-page {
    max-width: clamp(900px, 80vw, 1200px);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 60px);
    font-family: "Quicksand", sans-serif;
}

.aps-book-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: #333;
    margin: 0 0 clamp(12px, 1.5vw, 18px) 0;
}

.aps-book-page .aps-booking-body {
    gap: clamp(24px, 3vw, 40px);
}

.aps-book-page .aps-form-container {
    max-width: none;
    padding: 0;
}

.aps-book-section-title {
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 700;
    color: #333;
    margin: 0 0 clamp(6px, 0.8vw, 10px) 0;
}

.aps-book-section {
    margin-top: clamp(14px, 2vw, 22px);
}

.aps-book-page .aps-form-control {
    border: 1px solid #ccc;
    border-radius: clamp(3px, 0.4vw, 5px);
    padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 14px);
    font-size: clamp(13px, 1.2vw, 15px);
    font-family: "Quicksand", sans-serif;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

.aps-book-page .aps-form-textarea {
    min-height: auto;
}

.aps-book-page .aps-form-grid-item {
    margin: 0;
    padding: 0;
}

.aps-book-page .aps-form-group {
    margin: 0;
    padding: 0;
}

.aps-book-page .aps-form-control::placeholder {
    color: #999;
}

.aps-book-page .aps-form-control:focus {
    border-color: #00A99D;
    outline: none;
}

.aps-book-page .aps-form-select {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.aps-book-page .aps-participant-group {
    padding: 0;
    border: none;
    background: none;
}

.aps-book-page .aps-participant-group-title {
    display: none;
}

.aps-book-page .aps-participant-entry {
    display: flex;
    gap: clamp(10px, 1.2vw, 16px);
    margin-bottom: clamp(10px, 1.2vw, 16px);
    padding: 0;
    background: none;
    border: none;
}

.aps-book-page .aps-participant-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 0.5vw, 6px);
    min-width: clamp(24px, 2.5vw, 32px);
    padding-top: clamp(6px, 0.8vw, 10px);
    padding-bottom: 0;
    margin: 0;
    border-bottom: none;
}

.aps-book-page .aps-participant-number {
    font-size: clamp(14px, 1.4vw, 17px);
    font-weight: 700;
    color: #293374;
}

.aps-book-page .aps-participant-fields {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.aps-book-delivery-note {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #00A99D;
    margin: clamp(2px, 0.3vw, 4px) 0 0 0;
    font-style: italic;
}

.aps-book-member-confirm {
    font-size: clamp(12px, 1.2vw, 14px);
    color: #666;
    margin: 0 0 clamp(8px, 1vw, 10px) 0;
}

.aps-book-org-radios {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 0.8vw, 12px);
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.aps-book-org-option {
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.4vw, 5px);
    cursor: pointer;
    flex-shrink: 1;
    min-width: 0;
}

.aps-book-org-option img[src*="membership"] {
    max-width: clamp(40px, 8vw, 60px);
}

.aps-book-org-option input[type="radio"] {
    width: clamp(13px, 1.3vw, 16px);
    height: clamp(13px, 1.3vw, 16px);
    accent-color: #00A99D;
    cursor: pointer;
    margin: 0;
}

.aps-book-org-option img {
    height: clamp(24px, 3vw, 38px);
    width: auto;
    max-width: clamp(40px, 6vw, 70px);
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.aps-book-org-option:hover img,
.aps-book-org-option input[type="radio"]:checked ~ img {
    opacity: 1;
}

.aps-book-addon {
    margin-top: clamp(4px, 0.5vw, 8px);
}

.aps-book-addon-label {
    color: #293374;
    font-weight: 600;
}

.aps-book-page .aps-form-checkbox-label {
    font-size: clamp(13px, 1.2vw, 15px);
    color: #293374;
}

.aps-book-page .aps-participant-add-btn {
    background: none;
    border: none;
    color: var(--course-color, #D01F39);
    padding: clamp(8px, 1vw, 12px) 0;
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 600;
    font-family: "Quicksand", sans-serif;
    cursor: pointer;
    transition: color 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(6px, 0.6vw, 8px);
    margin-left: auto;
    width: auto;
}

.aps-book-page .aps-participant-add-btn svg {
    flex-shrink: 0;
}

.aps-book-page .aps-participant-add-btn:hover {
    opacity: 0.8;
}

.aps-book-page .aps-participant-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: clamp(4px, 0.5vw, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.aps-book-page .aps-participant-remove-btn:hover {
    color: var(--course-color, #D01F39);
}

.aps-book-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: clamp(220px, 80%, 280px);
    padding: clamp(8px, 0.8vw, 12px) clamp(16px, 2vw, 24px);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 400;
    font-family: "Quicksand", sans-serif;
    color: #fff;
    background: conic-gradient(from 90deg at 73% 50%, var(--course-color, #D01F39) 0%, var(--course-color-dark, #7D1322) 100%);
    border: 1px solid #e9e9e9;
    border-radius: clamp(16px, 1.5vw, 20px);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.aps-book-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 clamp(4px, 0.5vw, 6px) clamp(14px, 1.5vw, 20px) rgba(0, 0, 0, 0.15);
    filter: brightness(1.1) saturate(1.1);
}

.aps-book-submit-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.aps-payment-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.2vw, 14px);
    padding: clamp(12px, 1.5vw, 18px) clamp(8px, 1vw, 12px) clamp(4px, 0.5vw, 8px);
}

.aps-paypal-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.aps-paypal-section #paypal-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.aps-payment-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: clamp(220px, 80%, 280px);
    gap: clamp(8px, 1vw, 12px);
    color: #aaa;
    font-family: "Quicksand", sans-serif;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 600;
    text-transform: lowercase;
}

.aps-payment-divider::before,
.aps-payment-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.aps-book-paylater-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: clamp(220px, 80%, 280px);
    padding: clamp(8px, 0.8vw, 12px) clamp(16px, 2vw, 24px);
    font-family: "Quicksand", sans-serif;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 400;
    color: #fff;
    background: conic-gradient(from 90deg at 73% 50%, var(--course-color, #D01F39) 0%, var(--course-color-dark, #7D1322) 100%);
    border: 1px solid #e9e9e9;
    border-radius: clamp(16px, 1.5vw, 20px);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.aps-book-paylater-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 clamp(4px, 0.5vw, 6px) clamp(14px, 1.5vw, 20px) rgba(0, 0, 0, 0.15);
    filter: brightness(1.1) saturate(1.1);
}

.aps-book-paylater-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.aps-paypal-status {
    margin-top: clamp(12px, 1.5vw, 20px);
    padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.5vw, 16px);
    border-radius: clamp(4px, 0.6vw, 6px);
    font-family: "Quicksand", sans-serif;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.aps-paypal-info {
    background: #e8f5e9;
    color: #2e7d32;
}

.aps-paypal-error {
    background: #fce4ec;
    color: #c62828;
}


@media (max-width: 680px) {
    .aps-form-container {
        padding: clamp(0.8rem, 4vw, 1.2rem);
    }

    .aps-form-fields-grid {
        grid-template-columns: 1fr;
    }

    .aps-form-grid-item {
        grid-column: 1 / -1 !important;
    }

    .aps-form-options {
        flex-direction: column;
    }

    .aps-form-image-options {
        justify-content: center;
    }

    .aps-image-option-card {
        width: clamp(100px, 40vw, 160px);
    }

    .aps-text-option-card {
        width: auto !important;
        min-width: clamp(60px, 25vw, 100px);
    }

    .aps-participant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(6px, 2vw, 8px);
    }

    .aps-form-modal {
        max-height: 95vh;
        border-radius: clamp(6px, 2vw, 10px);
    }

    .aps-form-modal-overlay {
        padding: clamp(8px, 2vw, 16px);
    }

    .aps-date-select-pill {
        flex-wrap: wrap;
        gap: clamp(6px, 2vw, 10px);
    }

    .aps-date-select-info {
        flex-wrap: wrap;
        gap: clamp(6px, 2vw, 10px);
    }

    .aps-booking-body {
        flex-direction: column;
    }

    .aps-booking-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        order: 1;
    }

    .aps-book-page {
        padding: clamp(12px, 3vw, 20px);
        padding-top: 100px;
    }

    .aps-book-page .aps-booking-main {
        padding-right: 0;
    }

    .aps-book-submit-btn {
        width: 100%;
    }

    .aps-book-org-radios {
        gap: clamp(6px, 2vw, 10px);
    }

    .aps-book-org-option img {
        height: clamp(22px, 8vw, 35px);
    }

    .aps-book-page .aps-participant-fields {
        overflow: hidden;
        max-width: 100%;
    }
}
