/* Order Collector Frontend Styles */

.order-collector-form-wrapper {
    margin: 2rem 0;
    padding: 0 15px;
}

.order-collector-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Owner Name Display */
.form-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-owner-badge,
.order-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.order-date-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.owner-icon,
.date-icon {
    font-size: 1.2rem;
}

/* Owner Controls Section */
.owner-controls {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #3498db;
}

.owner-link-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.view-results-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-results-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.dashboard-icon {
    font-size: 1.2rem;
}

.order-form-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.order-form .form-group {
    margin-bottom: 1.5rem;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-form label .required {
    color: #e74c3c;
}

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="number"],
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Select dropdown styling */
.order-form select.item-select {
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1.2rem auto;
    padding-right: 2.5rem;
    cursor: pointer;
}

.order-form select.item-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Field hints */
.field-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.4rem;
    font-style: italic;
}

/* Readonly field styling */
.order-form input.readonly-field {
    background: #f5f5f5;
    color: #2c3e50;
    font-weight: 600;
    border: 2px solid #d0d0d0;
    cursor: not-allowed;
}

.order-form input.readonly-field:focus {
    outline: none;
    border-color: #d0d0d0;
    box-shadow: none;
}

.field-note {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-style: italic;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.order-form textarea {
    resize: vertical;
    min-height: 80px;
}

.order-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.order-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.order-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.order-submit-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.form-response {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-size: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-message strong {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .order-collector-form-container {
        padding: 1.5rem;
    }
    
    .order-form-title {
        font-size: 1.5rem;
    }
}
