/* Skydive Mossel Bay Booking - Public Styles */

.sdm-booking-container {
    max-width: 900px;
    margin: 0;
    padding: 0;
}

.sdm-booking-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Part 2: Roboto for all headings, labels, text */
#sdm-booking-part2,
#sdm-booking-part2 * {
    font-family: Roboto, sans-serif;
}

.sdm-altitude-prompt {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: #E6791E;
    border-left: 4px solid #d66a18;
    border-radius: 6px;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.sdm-altitude-payment-note {
    margin: 8px 0 16px;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

#sdm-booking-part1 .sdm-altitude-payment-note {
    color: #fff;
}

#sdm-booking-part2 .sdm-altitude-payment-note {
    color: #2c3e50;
}

.sdm-booking-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.sdm-booking-form {
    width: 100%;
}

.sdm-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.sdm-form-section:last-child {
    border-bottom: none;
}

/* Part 1: Altitude selection */
.sdm-altitude-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.sdm-altitude-option {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #FFFFFF14;
    border: 1px solid #FFFFFF30;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.sdm-altitude-option:hover,
.sdm-altitude-option:has(input:checked) {
    background: #E6791E;
    border-color: #E6791E;
}

.sdm-altitude-option:hover .sdm-altitude-name,
.sdm-altitude-option:hover .sdm-altitude-price,
.sdm-altitude-option:has(input:checked) .sdm-altitude-name,
.sdm-altitude-option:has(input:checked) .sdm-altitude-price {
    color: #fff;
}

.sdm-altitude-option input {
    margin-right: 16px;
}

/* Part 2: altitude options - selectable, border on unselected only */
#sdm-booking-part2 .sdm-altitude-option {
    cursor: pointer;
    background: #fff;
    border: 1px solid #d0d0d0;
}

#sdm-booking-part2 .sdm-altitude-option .sdm-altitude-name,
#sdm-booking-part2 .sdm-altitude-option .sdm-altitude-price {
    color: #2c3e50;
}

#sdm-booking-part2 .sdm-altitude-option:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

#sdm-booking-part2 .sdm-altitude-option.sdm-altitude-selected,
#sdm-booking-part2 .sdm-altitude-option:has(input:checked) {
    background: #E6791E;
    border: none;
}

#sdm-booking-part2 .sdm-altitude-option.sdm-altitude-selected .sdm-altitude-name,
#sdm-booking-part2 .sdm-altitude-option.sdm-altitude-selected .sdm-altitude-price,
#sdm-booking-part2 .sdm-altitude-option:has(input:checked) .sdm-altitude-name,
#sdm-booking-part2 .sdm-altitude-option:has(input:checked) .sdm-altitude-price {
    color: #fff;
}

#sdm-booking-part2 .sdm-altitude-option input {
    margin-right: 16px;
}

.sdm-terms-toggle {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s, border-color 0.2s;
}

.sdm-terms-toggle:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.sdm-terms-content {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    max-height: 300px;
    overflow-y: auto;
}

.sdm-terms-inline-notice {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff4e5;
    border: 1px solid #f6d7a8;
    color: #8a5a00;
    font-size: 13px;
    font-weight: 600;
}

.sdm-terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #000;
    margin-bottom: 0;
}

.sdm-terms-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.sdm-terms-checkbox-label.sdm-terms-checkbox-locked {
    display: none;
}

.sdm-altitude-notes {
    margin-top: 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

.sdm-altitude-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.sdm-altitude-name,
.sdm-altitude-price {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.sdm-altitude-name,
.sdm-altitude-price {
    color: #fff;
}

.sdm-part-title {
    font-size: 24px;
    color: #34495e;
    margin-bottom: 20px;
}

.sdm-back-btn {
    display: inline-block;
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 0;
    text-decoration: none;
}

.sdm-back-btn:hover {
    text-decoration: underline;
}

.sdm-selected-altitude {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.sdm-form-section h2 {
    font-size: 24px;
    color: #34495e;
    margin-bottom: 20px;
}

.sdm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sdm-form-group {
    margin-bottom: 20px;
}

.sdm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.sdm-extra-name {
    margin-right: 6px;
}

.sdm-extra-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    background: rgba(0, 81, 146, 0.12);
    color: #005192;
    cursor: help;
    vertical-align: middle;
    position: relative;
}

.sdm-extra-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 260px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 30;
}

.sdm-extra-tooltip:hover::after,
.sdm-extra-tooltip:focus-visible::after {
    opacity: 1;
}

.sdm-fill-first-participant {
    margin: 2px 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #005192;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.sdm-form-group .required {
    color: #e74c3c;
}

.sdm-field-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
}

.sdm-contact-accuracy-note {
    margin: 0 0 14px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 700;
}

.sdm-form-group .sdm-phone-input-group {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.sdm-form-group .sdm-phone-country-code {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", Arial, sans-serif;
}

.sdm-form-group .sdm-phone-country-code option {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", Arial, sans-serif;
}

.sdm-form-group .sdm-phone-input-group input[type="tel"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.sdm-form-group .sdm-phone-country-code.sdm-country-native-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.sdm-country-picker {
    position: relative;
    width: 100%;
}

.sdm-country-picker-button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.sdm-country-picker.open .sdm-country-picker-button {
    border-color: #3498db;
}

.sdm-country-picker-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
}

.sdm-country-picker.open .sdm-country-picker-menu {
    display: block;
}

.sdm-country-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.sdm-country-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.sdm-country-flag.sdm-country-flag-fallback {
    display: inline-block;
}

.sdm-country-label {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdm-country-picker-item:hover,
.sdm-country-picker-item.selected {
    background: #f2f8ff;
}

.sdm-requirements-section .sdm-requirements-list {
    display: flex;
    flex-direction: column;
}

.sdm-requirements-section .sdm-requirement-item {
    margin-bottom: 15px;
}

.sdm-requirements-section .sdm-requirement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: #000;
}

.sdm-requirements-section .sdm-requirement-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.sdm-requirements-section .sdm-field-error {
    margin-left: 28px;
}

.sdm-form-group input[type="text"],
.sdm-form-group input[type="email"],
.sdm-form-group input[type="tel"],
.sdm-form-group input[type="date"],
.sdm-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.sdm-form-group input:focus,
.sdm-form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.sdm-loading-times {
    display: inline-block;
    margin-left: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Date & timeslot day cards */
.sdm-timeslots-intro {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 20px;
}

.sdm-day-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
}

.sdm-calendar-trigger {
    display: inline-block;
    padding: 12px 24px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.sdm-calendar-trigger:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.sdm-calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sdm-calendar-popup {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 320px;
}

.sdm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sdm-calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.sdm-calendar-month-nav {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 18px;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sdm-calendar-month-nav:hover {
    background: #e9ecef;
}

.sdm-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
}

.sdm-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.sdm-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.sdm-calendar-day-number {
    position: relative;
    z-index: 1;
}

.sdm-calendar-day:hover:not(:disabled) {
    background: #E6791E;
    color: #fff;
}

.sdm-calendar-day-empty {
    cursor: default;
}

.sdm-calendar-day-past {
    color: #adb5bd;
    cursor: not-allowed;
}

.sdm-day-card {
    flex: 1;
    min-width: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.sdm-day-header {
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    position: relative;
}

.sdm-day-header .sdm-day-date {
    font-size: 15px;
    color: #495057;
}

.sdm-day-header .sdm-day-weekday {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
}

.sdm-day-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
}

.sdm-slot-chip {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.sdm-slot-chip:hover {
    border-color: #3498db;
    background: #e8f4fc;
    color: #2980b9;
}

.sdm-slot-chip.selected {
    border-color: #27ae60;
    background: #d4edda;
    color: #155724;
}

.sdm-slot-chip.sdm-slot-full {
    background: rgba(230, 121, 30, 0.2);
    border-color: #E6791E;
    color: #c2410c;
    font-weight: 700;
    opacity: 1;
}

.sdm-slot-chip.sdm-slot-closed {
    background: rgba(248, 113, 113, 0.18);
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 700;
    opacity: 1;
}

.sdm-slot-chip.sdm-slot-full:hover,
.sdm-slot-chip.sdm-slot-closed:hover {
    background: inherit;
    color: inherit;
    border-color: inherit;
}

.sdm-slot-chip:disabled {
    cursor: not-allowed;
}

.sdm-slot-capacity-warning {
    display: block;
    margin-top: -4px;
    margin-bottom: 6px;
    padding-left: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    text-align: center;
}

.sdm-selected-slot-summary {
    margin-top: 16px;
    padding: 14px 18px;
    background: #e8f4fc;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
}

.sdm-no-timeslots {
    padding: 24px;
    color: #7f8c8d;
    text-align: center;
}

.sdm-no-timeslots.sdm-error {
    color: #e74c3c;
}

.sdm-no-slots-day {
    color: #95a5a6;
    font-size: 14px;
    font-style: italic;
}

.sdm-booking-success-wrapper {
    text-align: center;
    padding: 48px 24px;
    font-family: Roboto, sans-serif;
}

.sdm-booking-success-wrapper,
.sdm-booking-success-wrapper * {
    font-family: Roboto, sans-serif;
}

.sdm-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: #27ae60;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    line-height: 72px;
    border-radius: 50%;
}

.sdm-success-title {
    color: #27ae60;
    margin-bottom: 16px;
}

.sdm-success-message {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 16px;
}

.sdm-important-heading {
    margin: 0 auto 10px;
    max-width: 560px;
    color: #b91c1c;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

.sdm-indemnity-notice {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 20px;
    background: #fff8e6;
    border: 1px solid #e6c84a;
    border-left: 4px solid #e6791e;
    border-radius: 6px;
}

.sdm-success-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.sdm-success-details p {
    margin: 0 0 12px;
    font-size: 15px;
}

.sdm-success-details p:last-child {
    margin-bottom: 0;
}

.sdm-success-details ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.sdm-success-details li {
    margin-bottom: 4px;
}

.sdm-participant-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.sdm-participant-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
}

.sdm-extras-intro {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
}

.sdm-extras-reference {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sdm-extra-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

.sdm-extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sdm-extras-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.sdm-participant-extras .sdm-extras-list {
    margin-top: 12px;
}

.sdm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #000;
}

.sdm-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 0;
    width: auto;
    flex-shrink: 0;
}

.sdm-price-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.sdm-price-details {
    font-size: 18px;
}

.sdm-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.sdm-price-row.sdm-price-deposit {
    border-bottom: none;
    font-weight: bold;
    font-size: 20px;
    color: #27ae60;
}

.sdm-submit-button {
    width: 100%;
    padding: 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Part 1 proceed button */
#sdm-proceed-part2.sdm-proceed-btn,
.sdm-proceed-btn#sdm-proceed-part2 {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 16px 32px;
    background-color: #E6791E;
    color: #fff;
    border-radius: 100px;
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

#sdm-proceed-part2.sdm-proceed-btn:hover:not(:disabled),
.sdm-proceed-btn#sdm-proceed-part2:hover:not(:disabled) {
    background-color: #d66a18;
}

/* Part 2 submit button - match Part 1 style */
#sdm-booking-part2 .sdm-submit-button,
#sdm-booking-part2 #submit-booking {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 16px 32px;
    background-color: #E6791E;
    color: #fff;
    border-radius: 100px;
    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

#sdm-booking-part2 .sdm-submit-button:hover:not(:disabled),
#sdm-booking-part2 #submit-booking:hover:not(:disabled) {
    background-color: #d66a18;
}

#sdm-booking-part2 .sdm-submit-button:disabled,
#sdm-booking-part2 #submit-booking:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.sdm-submit-button:hover:not(:disabled) {
    background: #2980b9;
}

.sdm-submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#sdm-booking-messages {
    margin-top: 20px;
}

.sdm-message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.sdm-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sdm-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .sdm-booking-wrapper {
        padding: 20px;
    }

    .sdm-booking-title {
        font-size: 24px;
    }

    .sdm-form-row {
        grid-template-columns: 1fr;
    }

    .sdm-day-cards {
        flex-wrap: wrap;
    }

    .sdm-day-card {
        flex: 1 1 100%;
    }
}
