/**
 * Preparat Quick Order Styles
 * Designed to match modern UI design specs
 */

.pqo-wrapper {
    margin: 24px 0;
    max-width: 480px;
    font-family: inherit;
}

.pqo-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
}

.pqo-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.pqo-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pqo-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pqo-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.pqo-required {
    color: #ef4444;
    font-weight: bold;
}

.pqo-input,
.pqo-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.pqo-input:focus,
.pqo-textarea:focus {
    outline: none;
    border-color: #67b9ca;
    box-shadow: 0 0 0 3px rgba(103, 185, 202, 0.2);
}

.pqo-textarea {
    resize: vertical;
    min-height: 100px;
}

.pqo-actions {
    margin-top: 8px;
}

.pqo-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #67b9ca;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    min-width: 180px;
}

.pqo-submit-btn:hover {
    background-color: #56a8b9;
    box-shadow: 0 4px 12px rgba(103, 185, 202, 0.3);
}

.pqo-submit-btn:active {
    transform: translateY(1px);
}

.pqo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.pqo-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: pqo-spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* Message box */
.pqo-message-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.pqo-message-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Thank You Card */
.pqo-thankyou-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: pqo-fade-in 0.3s ease-out;
}

@keyframes pqo-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pqo-thankyou-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #e0f2fe;
    border-radius: 50%;
    margin-bottom: 16px;
}

.pqo-thankyou-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.pqo-order-number {
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 12px;
}

.pqo-thankyou-text {
    font-size: 15px;
    color: #475569;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.pqo-reset-btn {
    background: #ffffff;
    color: #67b9ca;
    border: 1.5px solid #67b9ca;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pqo-reset-btn:hover {
    background: #67b9ca;
    color: #ffffff;
}
