.form-section {
    padding: 20px 28px 28px;
}

.required-note {
    font-size: 12.5px;
    color: #e74c3c;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #2d2d2d;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #f8b500;
    box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.12);
    background: #ffffff;
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

/* ---- Address select boxes ---- */
.address-detail {
    margin-bottom: 10px;
}

.address-selects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.form-group select.address-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #2d2d2d;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    appearance: none;
    -webkit-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='%23888' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select.address-select:focus {
    border-color: #f8b500;
    box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.12);
    background: #ffffff;
}

.form-group select.address-select:disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.form-group select.address-select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

@media (max-width: 480px) {
    .address-selects {
        grid-template-columns: 1fr;
    }
}

/* ---- Searchable select (thay thế <select> address) ---- */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #2d2d2d;
    background: #fafafa 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='%23888' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 12px;
    padding-right: 36px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    cursor: pointer;
}

.searchable-select-input:focus {
    border-color: #f8b500;
    box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.12);
    background-color: #ffffff;
}

.searchable-select-input:disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.searchable-select-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.searchable-select-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    transition: background 0.15s;
}

.searchable-select-clear.show {
    display: flex;
}

.searchable-select-clear:hover {
    background: #999;
}

.searchable-select-clear:active {
    background: #777;
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 20;
    display: none;
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #2d2d2d;
    transition: background 0.15s;
}

.searchable-select-option:first-child {
    border-radius: 10px 10px 0 0;
}

.searchable-select-option:last-child {
    border-radius: 0 0 10px 10px;
}

.searchable-select-option:hover {
    background: #fff8e7;
}

.searchable-select-option.selected {
    background: #fff8e7;
    color: #f8b500;
    font-weight: 600;
}

.searchable-select-option.no-match {
    color: #999;
    cursor: default;
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}

.radio-option:hover {
    background: #fff8e7;
    border-color: #f8b500;
}

.radio-option.selected {
    border-color: #f8b500;
    background: #fff8e7;
}

.radio-option input[type="radio"] {
    accent-color: #f8b500;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option label {
    margin-bottom: 0 !important;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
}

.other-input {
    margin-top: 8px;
    display: none;
}

.other-input.show {
    display: block;
}

.error-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}

.price-display {
    margin-top: 8px;
    font-size: 15px;
    color: #27ae60;
}

.price-display .price-muted {
    font-size: 12.5px;
    color: #999;
    font-weight: 400;
}

.error-message.show {
    display: block;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    flex: 1;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-submit {
    background: linear-gradient(135deg, #f8b500, #e6a400);
    color: #1a1a2e;
    box-shadow: 0 4px 14px rgba(248, 181, 0, 0.35);
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(248, 181, 0, 0.45);
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
}

.btn-reset:hover {
    background: #ebebeb;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #2d2d2d;
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group textarea:focus {
    border-color: #f8b500;
    box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.12);
    background: #ffffff;
}

/* Searchable select */
.searchable-select {
    position: relative;
}

.searchable-select-input {
    width: 100% !important;
    padding-right: 36px !important;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 10;
    display: none;
}

.searchable-select.open .searchable-select-dropdown {
    display: block;
}

.searchable-select-dropdown .searchable-option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #2d2d2d;
    transition: background 0.15s;
}

.searchable-select-dropdown .searchable-option:hover {
    background: #fff8e7;
}

.address-vn-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: #555;
}

.address-vn-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f8b500;
}

/* Hides the native <select> but keeps it functional */
.searchable-select select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}