/* ==========================================================================
   GRR Reservation System: Frontend Layout Adjustments
   ========================================================================== */

/* 1. Scoped Outer Container Wrapper */
.grr-public-reservation-wrapper {
    max-width: 650px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
}

/* 2. Replicating the Dashboard .card Design */
.grr-public-reservation-wrapper .card {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border-radius: 4px;
}

/* 3. Replicating .form-table Grid Alignment */
.grr-public-reservation-wrapper .form-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
}

.grr-public-reservation-wrapper .form-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.grr-public-reservation-wrapper .form-table tr:last-child {
    border-bottom: none;
}

.grr-public-reservation-wrapper .form-table th {
    vertical-align: top;
    text-align: left;
    padding: 16px 10px 16px 0;
    width: 200px;
    font-weight: 600;
    line-height: 1.3;
}

.grr-public-reservation-wrapper .form-table td {
    padding: 12px 0;
    vertical-align: middle;
}

/* 4. Formatting Core Form Fields & Selection Blocks */
.grr-public-reservation-wrapper select.postform,
.grr-public-reservation-wrapper input[type="text"].regular-text,
.grr-public-reservation-wrapper input[type="email"].regular-text,
.grr-public-reservation-wrapper input[type="tel"].regular-text,
.grr-public-reservation-wrapper input[type="date"] {
    width: 100%;
    max-width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.grr-public-reservation-wrapper select.postform:focus,
.grr-public-reservation-wrapper input:focus {
    border-color: #2271b1;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Date input layout adjustments */
.grr-public-reservation-wrapper input[type="date"] {
    max-width: 180px;
}

/* 5. Button Infrastructure Restoration */
.grr-public-reservation-wrapper .button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 4px 16px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    font-weight: 500;
}

/* Secondary Button (Availability Check) */
.grr-public-reservation-wrapper .button-secondary {
    color: #2271b1;
    border-color: #2271b1;
    background: #f6f7f7;
}

.grr-public-reservation-wrapper .button-secondary:hover {
    background: #f0f6fa;
    color: #0a4b78;
    border-color: #0a4b78;
}

/* Primary Button (Final Submission Button) */
.grr-public-reservation-wrapper .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-size: 14px;
    padding: 6px 20px;
}

.grr-public-reservation-wrapper .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

/* 6. Notices and Dynamic Pricing Containers */
.grr-public-reservation-wrapper .notice-info {
    background: #f0f6fa;
    border-left: 4px solid #72aee6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}