/**
 * Voucher Frontend Styles
 * Styles matching #pwgc-purchase-container from Vertigo theme
 */

.vwt-voucher-form {
    margin: 20px 0;
    padding: 0;
}

.vwt-voucher-field {
    margin-bottom: 18px;
}

.vwt-voucher-field:last-child {
    margin-bottom: 0;
}

.vwt-voucher-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.vwt-voucher-field label .required {
    color: #641822;
}

/* Input styles matching #pwgc-purchase-container */
.vwt-voucher-input {
    width: 100%;
    border: 1px solid #d5d5d5 !important;
    padding: 0 14px;
    color: rgba(0, 0, 0, 0.7);
    min-height: 40px;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vwt-voucher-input:focus,
.vwt-voucher-input:focus-visible {
    border-color: #641822 !important;
    box-shadow: 0 0 0 1px #641822, 0px 1px 2px rgba(0, 0, 0, 0.15) !important;
    outline-color: #641822 !important;
    outline: none;
}

.vwt-voucher-input.vwt-error {
    border-color: #e74c3c !important;
}

.vwt-voucher-input::placeholder {
    opacity: 0.5;
}

textarea.vwt-voucher-input {
    height: 185px;
    padding: 14px;
    resize: vertical;
}

select.vwt-voucher-input {
    cursor: pointer;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="8"><path fill="%23666" d="M0 0l7 8 7-8z"/></svg>') no-repeat right 14px center;
    background-size: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.vwt-voucher-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

/* Datepicker customization with Vertigo theme colors */
.ui-datepicker {
    font-family: inherit;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #d5d5d5;
}

.ui-datepicker .ui-datepicker-header {
    background: #641822;
    border: none;
    border-radius: 4px;
    color: #fff;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ui-datepicker .ui-datepicker-title {
    color: #fff;
}

.ui-datepicker td a.ui-state-active {
    background: #641822;
    border-color: #641822;
    color: #fff;
}

.ui-datepicker td a.ui-state-hover {
    background: #f5f5f5;
}

.ui-datepicker td a {
    text-align: center;
}

/* Validation error messages */
.vwt-field-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #e74c3c;
}

/* Info section */
.vwt-voucher-info-section {
    margin-top: 25px;
    padding: 18px 20px;
    background: #faf5f5;
    border: 1px solid #e8d5d5;
    border-radius: 4px;
}

.vwt-voucher-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #641822;
}

.vwt-info-icon {
    display: flex;
    align-items: center;
    color: #641822;
}

.vwt-voucher-info-content {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.vwt-voucher-info-content p {
    margin: 0 0 10px 0;
}

.vwt-voucher-info-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .vwt-voucher-input {
        min-height: 44px;
    }

    textarea.vwt-voucher-input {
        height: 140px;
    }

    .vwt-voucher-info-section {
        padding: 15px;
    }

    .vwt-voucher-info-content {
        font-size: 12px;
    }
}
