/* Catering Contract Styles */

.hc-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hc-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e6e6e6;
}

.hc-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hc-logo {
    max-width: 180px;
    max-height: 110px;
    width: auto;
    height: auto;
}

.hc-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.hc-content {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hc-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.hc-intro p {
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

.hc-policies {
    margin: 2rem 0;
}

.hc-policy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e6e6e6;
}

.hc-policy-section:last-child {
    border-bottom: none;
}

.hc-policy-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hc-policy-section p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.75rem;
}

.hc-cancellation-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.hc-cancellation-notice p {
    margin: 0;
    font-weight: 600;
    color: #856404;
}

.hc-initials-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.hc-initials-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hc-initials-row label {
    font-style: italic;
    color: #444;
    flex: 1;
}

.hc-initials-canvas-wrapper {
    width: 200px;
}

#hc-initials-canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    width: 100%;
    height: 80px;
    background: white;
    touch-action: none;
}

.hc-initials-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    margin-top: 0.5rem;
}

.hc-initials-btn:hover {
    background: #f5f5f5;
    border-color: #111;
    color: #111;
}

.hc-customer-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.hc-info-row {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: baseline;
}

.hc-info-row:last-child {
    margin-bottom: 0;
}

.hc-info-row label {
    font-weight: 700;
    min-width: 180px;
    color: #111;
}

.hc-info-row span {
    color: #444;
}

.hc-agreement {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 12px;
    border: 2px solid #2196f3;
}

.hc-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.6;
}

.hc-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hc-checkbox-label span {
    flex: 1;
    font-weight: 600;
    color: #111;
}

.hc-signature-section {
    margin: 2rem 0;
}

.hc-signature-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.hc-signature-section p {
    color: #666;
    margin-bottom: 1rem;
}

#hc-signature-canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
    background: white;
    touch-action: none;
}

.hc-signature-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.hc-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.hc-btn-primary {
    background: #111;
    color: white;
}

.hc-btn-primary:hover:not(:disabled) {
    background: #2a2a2a;
    transform: translateY(-2px);
}

.hc-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.hc-btn-secondary {
    background: white;
    color: #111;
    border: 2px solid #111;
}

.hc-btn-secondary:hover {
    background: #f5f5f5;
}

.hc-date-info {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

#hc-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

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

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

.hc-signed {
    margin: 2rem 0;
}

.hc-success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hc-success-box h3 {
    color: #155724;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hc-success-box p {
    color: #155724;
    margin: 0.5rem 0;
}

.hc-signature-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hc-signature-display label {
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    color: #111;
}

.hc-signature-img {
    max-width: 400px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 1rem;
}

.hc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #f5c6cb;
    text-align: center;
    font-weight: 600;
}

.hc-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.hc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #111;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hc-policy-summary {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.25rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.hc-policy-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #2e7d32;
    font-size: 1.1rem;
}

.hc-policy-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.hc-policy-summary li {
    color: #2e7d32;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hc-content {
        padding: 1.5rem;
    }
    
    .hc-header h1 {
        font-size: 1.8rem;
    }
    
    .hc-info-row {
        flex-direction: column;
    }
    
    .hc-info-row label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .hc-signature-actions {
        flex-direction: column;
    }
    
    .hc-btn {
        width: 100%;
    }
    
    #hc-signature-canvas {
        height: 150px;
    }
    
    .hc-initials-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hc-initials-canvas-wrapper {
        width: 100%;
        max-width: 300px;
    }
}
