/* ============================================================
   Pearson GTA Limo — Reservation Form Styles
   Plugin Version 1.0.0
   All classes prefixed with .pgl- to avoid conflicts
   ============================================================ */

:root {
    --pgl-gold:       #c9a84c;
    --pgl-dark:       #0d0d0d;
    --pgl-dark-2:     #1a1a1a;
    --pgl-border:     #2a2a2a;
    --pgl-input-bg:   #141414;
    --pgl-text:       #ffffff;
    --pgl-text-muted: #999999;
    --pgl-error:      #e53e3e;
    --pgl-success:    #38a169;
    --pgl-radius:     8px;
    --pgl-transition: 0.2s ease;
}

/* ── Wrapper ── */
.pgl-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    color: var(--pgl-text);
}

/* ══════════════════════════════════════
   SUCCESS STATE
══════════════════════════════════════ */
.pgl-success {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 2px solid var(--pgl-gold);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
}

.pgl-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.pgl-success-title {
    color: var(--pgl-gold);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.pgl-success-msg {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 28px;
}

.pgl-success-contacts {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════
   FORM CONTAINER
══════════════════════════════════════ */
.pgl-form {
    background: #111111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .pgl-form {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

/* ── Section Title ── */
.pgl-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--pgl-gold);
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
}

.pgl-form .pgl-section-title:first-child {
    margin-top: 0;
}

/* ── Grid Rows ── */
.pgl-row {
    display: grid;
    gap: 16px;
    margin-bottom: 0;
}

.pgl-row-1 { grid-template-columns: 1fr; }
.pgl-row-2 { grid-template-columns: 1fr 1fr; }
.pgl-row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 680px) {
    .pgl-row-2,
    .pgl-row-3 { grid-template-columns: 1fr; }
}

/* ── Field ── */
.pgl-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.pgl-row .pgl-field {
    margin-bottom: 0;
}

/* ── Labels ── */
.pgl-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.pgl-req {
    color: var(--pgl-gold);
    font-weight: 700;
}

/* ── Inputs, Selects, Textareas ── */
.pgl-input {
    background: var(--pgl-input-bg);
    border: 1px solid #2a2a2a;
    border-radius: var(--pgl-radius);
    color: var(--pgl-text);
    font-size: 14px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--pgl-transition), box-shadow var(--pgl-transition);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    font-family: inherit;
}

.pgl-input:focus {
    border-color: var(--pgl-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.pgl-input::placeholder {
    color: #444;
}

/* Select arrow */
select.pgl-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.pgl-input option {
    background: #1a1a1a;
    color: #fff;
}

/* Date + time inputs */
input[type="date"].pgl-input,
input[type="time"].pgl-input {
    color-scheme: dark;
}

/* Textarea */
.pgl-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

/* ── Radio Group (One Way / Return) ── */
.pgl-radio-group {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.pgl-radio {
    flex: 1;
    cursor: pointer;
}

.pgl-radio input[type="radio"] {
    display: none;
}

.pgl-radio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pgl-input-bg);
    border: 1px solid #2a2a2a;
    border-radius: var(--pgl-radius);
    color: #888;
    font-size: 14px;
    font-weight: 600;
    height: 44px;
    transition: all var(--pgl-transition);
    cursor: pointer;
    user-select: none;
}

.pgl-radio input[type="radio"]:checked + .pgl-radio-btn {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--pgl-gold);
    color: var(--pgl-gold);
}

.pgl-radio-btn:hover {
    border-color: #555;
    color: #ccc;
}

/* ── Return Section (animated) ── */
.pgl-return-section {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ── Checkbox ── */
.pgl-checkbox-field {
    margin-bottom: 0;
}

.pgl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    padding: 12px 16px;
    background: var(--pgl-input-bg);
    border: 1px solid #2a2a2a;
    border-radius: var(--pgl-radius);
    transition: all var(--pgl-transition);
    user-select: none;
}

.pgl-checkbox-label:hover {
    border-color: #444;
    color: #ccc;
}

.pgl-checkbox-label input[type="checkbox"] {
    display: none;
}

.pgl-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pgl-transition);
    position: relative;
}

.pgl-checkbox-label input[type="checkbox"]:checked ~ .pgl-checkbox-custom {
    background: var(--pgl-gold);
    border-color: var(--pgl-gold);
}

.pgl-checkbox-label input[type="checkbox"]:checked ~ .pgl-checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #0d0d0d;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-top: -2px;
}

.pgl-checkbox-label input[type="checkbox"]:checked ~ * {
    color: var(--pgl-gold);
}

.pgl-checkbox-label strong {
    font-weight: 700;
}

/* ── Error Message ── */
.pgl-error {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.4);
    border-radius: var(--pgl-radius);
    color: #fc8181;
    font-size: 14px;
    padding: 12px 16px;
    margin-top: 8px;
}

/* ── Submit Area ── */
.pgl-submit-wrap {
    margin-top: 28px;
    text-align: center;
}

.pgl-submit {
    background: var(--pgl-gold);
    border: none;
    border-radius: 10px;
    color: #0d0d0d;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 16px 48px;
    transition: all var(--pgl-transition);
    min-width: 260px;
    position: relative;
    overflow: hidden;
}

.pgl-submit:hover:not(:disabled) {
    background: #e0bb5a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.pgl-submit:active:not(:disabled) {
    transform: translateY(0);
}

.pgl-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pgl-submit-text,
.pgl-submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pgl-submit-note {
    color: #555;
    font-size: 12px;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ── Spinner ── */
.pgl-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,.2);
    border-top-color: #0d0d0d;
    border-radius: 50%;
    animation: pgl-spin 0.7s linear infinite;
}

@keyframes pgl-spin {
    to { transform: rotate(360deg); }
}

/* ── Buttons (success state) ── */
.pgl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    text-decoration: none;
    transition: all var(--pgl-transition);
    cursor: pointer;
    border: none;
}

.pgl-btn-dark {
    background: var(--pgl-dark);
    color: var(--pgl-gold);
    border: 2px solid var(--pgl-gold);
}

.pgl-btn-dark:hover {
    background: var(--pgl-gold);
    color: var(--pgl-dark);
}

.pgl-btn-outline {
    background: transparent;
    color: #aaa;
    border: 2px solid #333;
}

.pgl-btn-outline:hover {
    border-color: var(--pgl-gold);
    color: var(--pgl-gold);
}

/* ── Input Validation States ── */
.pgl-input.pgl-invalid {
    border-color: var(--pgl-error);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.pgl-input.pgl-valid {
    border-color: var(--pgl-success);
}

/* ── Responsive Tweaks ── */
@media (max-width: 480px) {
    .pgl-success {
        padding: 32px 20px;
    }

    .pgl-success-title {
        font-size: 20px;
    }

    .pgl-success-contacts {
        flex-direction: column;
        align-items: center;
    }

    .pgl-submit {
        width: 100%;
        min-width: unset;
    }

    .pgl-radio-group {
        gap: 8px;
    }
}
