/* RLH Checkout Forms v3 – Front-end Styles */

.rlh-form-wrap {
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 36px;
    margin: 32px auto;
    max-width: 780px;
}

.rlh-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.rlh-form-subtitle {
    color: #666;
    margin: 0 0 28px;
    font-size: 0.95rem;
}

.rlh-already-submitted p {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 600;
    margin: 0 0 20px;
}

.rlh-section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #e07b00;
    padding-bottom: 6px;
    margin: 28px 0 18px;
}

.rlh-field-group {
    margin-bottom: 20px;
}

.rlh-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.rlh-required {
    color: #c62828;
    margin-left: 2px;
}

.rlh-input,
.rlh-textarea,
.rlh-select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.rlh-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px;
    padding-right: 40px;
}

.rlh-input:focus,
.rlh-textarea:focus,
.rlh-select:focus {
    outline: none;
    border-color: #e07b00;
    box-shadow: 0 0 0 3px rgba(224, 123, 0, 0.15);
}

.rlh-textarea {
    resize: vertical;
    min-height: 80px;
}

.rlh-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.rlh-radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
}

.rlh-radio-label input[type="radio"] {
    accent-color: #e07b00;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Checkbox fields (consent / acknowledgement) */
.rlh-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.rlh-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 0;
    margin-top: 2px;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.rlh-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #fff;
    background-color: #fff;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.rlh-checkbox:checked {
    background-color: #e07b00;
    border-color: #e07b00;
}

.rlh-checkbox:checked::before {
    transform: scale(1);
}

.rlh-checkbox:focus {
    outline: none;
    border-color: #e07b00;
    box-shadow: 0 0 0 3px rgba(224, 123, 0, 0.15);
}

.rlh-checkbox-text a {
    color: #e07b00;
    text-decoration: underline;
}

.rlh-submit-wrap {
    margin-top: 32px;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

.rlh-submit-btn {
    background: #e07b00;
    color: #fff !important;
    border: none;
    padding: 14px 38px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.2s;
    letter-spacing: 0.01em;
}

.rlh-submit-btn:hover {
    background: #c46d00;
}

.rlh-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rlh-form-message {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 16px;
}

.rlh-form-message.rlh-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.rlh-form-message.rlh-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

@media (max-width: 600px) {
    .rlh-form-wrap {
        padding: 20px 16px;
    }

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

.wp-block-post-title {
    text-align: center;
}