/**
 * Alert Form Styles
 *
 * @package    Ghn_Booking_System
 * @subpackage Ghn_Booking_System/public/css
 */

/* Hide scrollbar when modal is open */
body.ghl-alert-modal-open {
    overflow: hidden;
}

/* Modal Styles */
.ghl-alert-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    font-family: "Nunito", sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ghl-alert-modal p,
.ghl-alert-modal a,
.ghl-alert-modal button,
.ghl-alert-modal input,
.ghl-alert-modal select,
.ghl-alert-modal h1,
.ghl-alert-modal h2,
.ghl-alert-modal h3,
.ghl-alert-modal h4,
.ghl-alert-modal h5,
.ghl-alert-modal h6,
.ghl-alert-modal textarea {
    font-family: "Nunito", sans-serif;
    outline: none;
    border-radius: 4px;
}

.ghl-alert-modal.show {
    display: block;
    opacity: 1;
}

.ghl-alert-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    font-family: "Nunito", sans-serif;
}

.ghl-alert-body--reservation-time {
    width: 50%;
}

.ghl-alert-body--reservation-details {
    width: 50%;
}

.ghl-alert-modal.show .ghl-alert-modal-content {
    transform: translateY(0);
}

.ghl-alert-body--reservation-box {
    display: flex
;
    justify-content: space-between;
    align-items: self-end;
}

.ghl-alert-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.ghl-alert-close:hover {
    color: #666;
}

/* Header Styles */
.ghl-alert-header {
    text-align: center;
    margin-bottom: 20px;
}

.ghl-alert-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Body Styles */
.ghl-alert-body {
    color: #333;
    max-width: 650px;
    margin: auto;
}

button#ghl-alert-submit-btn {
    max-width: 300px;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: #FF7B7A;
}


.ghl-alert-body p {
    font-size: 14px;
    margin-bottom: 5px;
	color: #373c3c;
}

/* Date and Time Display */
.ghl-alert-date-time {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.ghl-alert-date-icon, .ghl-alert-guests-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    width: 24px;
}

.ghl-alert-date-icon svg, .ghl-alert-guests-icon svg {
    color: #666;
    font-size: 16px;
}

#ghl-alert-selected-date {
    font-weight: 500;
    font-size: 14px;
}

.ghl-alert-guests-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 5px 0;
}

#ghl-alert-selected-guests {
    font-weight: 500;
    font-size: 14px;
    margin-right: 5px;
}

/* Time Range Selector */
.ghl-alert-time-range {
    margin-bottom: 25px;
}

.ghl-alert-time-range p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #283645;
}

.ghl-alert-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
}

.ghl-alert-select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
    background-color: transparent;
}

.ghl-alert-time-separator {
    font-weight: 500;
    color: #666;
}

/* Form Fields */
.ghl-alert-form-fields {
    margin-bottom: 25px;
}

.ghl-alert-field-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ghl-alert-field-group {
    flex: 1;
}

.ghl-alert-field-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #373c3c;
}

.ghl-alert-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s;
    background-color: transparent;
}

.ghl-alert-input:focus {
    border-color: #333;
    outline: none;
}

.ghl-alert-input.error {
    border-color: #e74c3c;
}

/* Checkbox Styles */
.ghl-alert-consent {
    margin-bottom: 20px;
}

.ghl-alert-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.ghl-alert-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ghl-alert-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
}

.ghl-alert-checkbox-container:hover input ~ .ghl-alert-checkmark {
    background-color: #f9f9f9;
}

.ghl-alert-checkbox-container input:checked ~ .ghl-alert-checkmark {
    background-color: #333;
    border-color: #333;
}

.ghl-alert-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.ghl-alert-checkbox-container input:checked ~ .ghl-alert-checkmark:after {
    display: block;
}

.ghl-alert-checkbox-container .ghl-alert-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ghl-alert-consent-text {
    font-size: 14px;
    color: #373c3c;
    line-height: 1.4;
}

/* Button Styles */
.ghl-alert-actions {
    text-align: center;
}

.ghl-alert-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.ghl-alert-button svg {
    font-size: 16px;
}

.ghl-alert-button:hover {
    background-color: #555;
}

/* Success Message */
.ghl-alert-success {
    text-align: center;
    padding: 20px 0;
}

.ghl-alert-success-icon {
    margin-bottom: 15px;
}

.ghl-alert-success h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #283645;
    text-transform: capitalize;
    letter-spacing: 0.1px;
}

.ghl-alert-success p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #283645;
}

.ghl-alert-close-btn {
    background-color: #FF7B7A;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ghl-alert-close-btn:hover {
    background-color: #3d8b40;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ghl-alert-modal-content {
        margin: 15% auto;
        padding: 20px;
        width: 95%;
    }
    
    .ghl-alert-date-time {
        flex-direction: column;
        gap: 10px;
    }
    
    .ghl-alert-field-row {
        flex-direction: column;
        gap: 15px;
    }
}
