:root {
    --dsp-primary: #124F85;
    --dsp-hover: #0e3e6b;
    --dsp-bg: #f5f9ff;
    --dsp-text: #333;
    --dsp-border: #e0e0e0;
}

.dsp-box {
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dsp-text);
}

.dsp-box h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--dsp-primary);
    text-align: center;
}

.dsp-form-group,
.dsp-field-group {
    margin-bottom: 20px;
}

.dsp-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--dsp-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:focus,
select:focus {
    border-color: var(--dsp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 79, 133, 0.1);
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slots .radio-card {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.time-slots .radio-card input {
    display: none;
}

.time-slots .radio-card:has(input:checked) {
    background: var(--dsp-primary);
    color: #fff;
    border-color: var(--dsp-primary);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-methods .radio-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid var(--dsp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.payment-methods .radio-card:hover {
    background: var(--dsp-bg);
}

.payment-methods .radio-card input {
    margin-right: 12px;
}

/* Price */
#dsp-course-price-container {
    margin-bottom: 20px;
    background-color: rgb(240, 247, 255);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgb(179, 215, 255);
    margin-top: 15px;
    text-align: center;
}

.dsp-price-display {
    font-size: 28px;
    font-weight: 700;
    color: var(--dsp-primary);
    text-align: center;
}

.dsp-price-currency {
    font-size: 16px;
    margin-left: 5px;
}

/* Submit Button */
#dsp-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--dsp-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dsp-submit-btn:hover {
    background: var(--dsp-hover);
}

#dsp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Dropdowns (Country & Course) */
.dsp-custom-dropdown {
    position: relative;
    border: 1px solid var(--dsp-border);
    border-radius: 8px;
    background: #fdfdfd;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.dsp-custom-dropdown:hover {
    background: #f5f5f5;
}

.dsp-custom-dropdown:focus-within {
    border-color: var(--dsp-primary);
    box-shadow: 0 0 0 3px rgba(18, 79, 133, 0.1);
}

.dsp-selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 15px;
    gap: 10px;
}

.dsp-selected-item .dsp-current-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsp-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--dsp-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 350px;
    display: flex;
    flex-direction: column;
    animation: dsp-fade-in 0.2s ease-out;
}

.dsp-dropdown-search {
    margin: 10px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    width: calc(100% - 20px) !important;
    border: 1px solid var(--dsp-border);
    border-radius: 6px;
}

.dsp-dropdown-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto;
    flex: 1;
}

.dsp-dropdown-list li {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.dsp-dropdown-list li:hover {
    background: var(--dsp-bg);
}

/* Specific Phone Wrapper overrides */
.dsp-phone-wrapper {
    display: flex;
    border: 1px solid var(--dsp-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.dsp-phone-wrapper:focus-within {
    border-color: var(--dsp-primary);
    box-shadow: 0 0 0 3px rgba(18, 79, 133, 0.1);
}

.dsp-phone-wrapper .dsp-custom-dropdown {
    border: none;
    border-right: 1px solid var(--dsp-border);
    border-radius: 8px 0 0 8px;
    min-width: 90px;
}

.dsp-phone-wrapper input[type="tel"] {
    border: none;
    flex: 1;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    margin-bottom: 0 !important;
}

.dsp-phone-wrapper input[type="tel"]:focus {
    box-shadow: none;
}

@keyframes dsp-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dsp-current-flag {
    font-size: 20px;
}

.dsp-current-code {
    font-weight: 500;
}

.dsp-arrow {
    font-size: 10px;
    color: #999;
}

.dsp-dropdown-list li .flag {
    font-size: 18px;
}

.dsp-dropdown-list li .dial-code {
    color: #888;
    font-weight: 500;
}