/**
 * Public Styles for Holiday Delivery Lookup Form
 */

.hdl-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hdl-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hdl-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hdl-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hdl-required {
    color: #d63638;
    font-weight: bold;
}

.hdl-input,
.hdl-select {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.hdl-input:focus,
.hdl-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.hdl-input:hover,
.hdl-select:hover {
    border-color: #999;
}

.hdl-help-text {
    font-size: 14px;
    color: #666;
}

.hdl-submit-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.hdl-submit-button:hover {
    background: #005a87;
}

.hdl-submit-button:active {
    transform: scale(0.98);
}

.hdl-submit-button:focus {
    outline: 3px solid rgba(0, 115, 170, 0.5);
    outline-offset: 2px;
}

.hdl-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.hdl-result {
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in;
}

.hdl-result.hdl-success {
    background: #edfaed;
    border-left: 4px solid #46b450;
    color: #2c662d;
}

.hdl-result.hdl-error {
    background: #fef7f6;
    border-left: 4px solid #d63638;
    color: #8a2424;
}

.hdl-result.hdl-loading {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    color: #004a6f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.hdl-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .hdl-form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .hdl-input,
    .hdl-select,
    .hdl-submit-button {
        font-size: 14px;
    }
}

/* Focus visible for keyboard navigation */
.hdl-input:focus-visible,
.hdl-select:focus-visible,
.hdl-submit-button:focus-visible {
    outline: 3px solid rgba(0, 115, 170, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hdl-input,
    .hdl-select {
        border-width: 3px;
    }
    
    .hdl-submit-button {
        border: 2px solid #000;
    }
}

/* Suburb section styling */
.hdl-suburb-section {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    color: #2c662d;
}

.hdl-response-section {
    line-height: 1.6;
}
