/**
 * ChoPaChe Referral Agreement Styles
 * Place this file in: /assets/style.css
 */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* Glassmorphism Classes */
.glass1 {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.4px);
    -webkit-backdrop-filter: blur(4.4px);
}

.glass2 {
    background: rgba(255, 255, 255, 0);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Wrapper */
.chopache-agreement-wrapper {
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    /* Remove purple gradient - use white or custom color */
    background: #f5f5f5; /* Light gray background */
    /* OR use a subtle gradient: */
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    /* OR keep it white: */
    /* background: #ffffff; */
    min-height: 100vh;
    padding: 40px 20px;
}

.chopache-agreement-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
}

/* Header */
.header {
    text-align: center;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.company-name {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.form-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
}

/* Parties Section */
.parties-section {
    margin: 20px 0;
    padding: 20px;
    border-left: 4px solid #2c3e50;
    font-style: italic;
}

/* Clauses */
.clause {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.clause.checked {
    background: rgba(40, 167, 69, 0.1) !important;
    border-color: #28a745 !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.clause-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.checkbox {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    margin-top: 2px;
    border: 2px solid #2c3e50;
    border-radius: 30px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.clause-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    flex: 1;
}

.clause-content {
    margin-left: 33px;
    text-align: justify;
}

.sub-clause {
    margin: 8px 0;
    padding-left: 15px;
}

/* Warning and Note Boxes */
.warning-box {
    background: rgba(255, 243, 205, 0.8);
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    color: #856404;
    backdrop-filter: blur(5px);
}

.commission-note {
    background: rgba(209, 236, 241, 0.8);
    border: 1px solid #bee5eb;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    color: #0c5460;
    backdrop-filter: blur(5px);
}

/* Acknowledgment */
.acknowledgment {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Signature Section */
.signature-section {
    margin-top: 40px;
    padding: 30px;
    border: 2px solid rgba(44, 62, 80, 0.3);
}

.signature-section h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.signature-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    align-items: flex-start;
    gap: 20px;
}

.signature-item {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.signature-item-full {
    flex: 1;
    margin: 0;
    width: 100%;
    margin-bottom: 20px;
}

.signature-item label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

/* Input Fields */
.input-field,
.date-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(221, 221, 221, 0.5);
    border-radius: 30px;
    font-size: 15px;
    font-family: 'Jost', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.input-field:focus,
.date-input:focus {
    outline: none;
    border-color: #2c3e50;
    background-color: rgba(248, 249, 250, 0.9);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* File Input */
.file-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(221, 221, 221, 0.5);
    border-radius: 30px;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    box-sizing: border-box;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.file-input:focus {
    outline: none;
    border-color: #2c3e50;
}

.file-preview {
    margin-top: 10px;
    padding: 12px;
    background: rgba(232, 244, 248, 0.8);
    border-radius: 30px;
    border: 1px solid #bee5eb;
    display: none;
    backdrop-filter: blur(10px);
}

/* Signature Canvas */
.signature-canvas {
    border: 2px solid rgba(221, 221, 221, 0.5);
    border-radius: 12px;
    cursor: crosshair;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    width: 100%;
    max-width: 400px;
    height: 100px;
    display: block;
    backdrop-filter: blur(10px);
}

.signature-canvas:focus {
    border-color: #2c3e50;
}

.signature-controls {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 30px;
    background: rgba(248, 249, 250, 0.8);
    cursor: pointer;
    font-size: 12px;
    font-family: 'Jost', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: rgba(233, 236, 239, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    border-color: #2c3e50;
}

.btn-primary:hover {
    background: rgba(52, 73, 94, 0.95);
}

/* Submit Section */
.submit-section {
    margin-top: 30px;
    padding: 30px;
    border: 2px solid rgba(44, 62, 80, 0.3);
    text-align: center;
}

.submit-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.loading {
    display: none;
    margin-top: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.success-message {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 237, 218, 0.9);
    border: 1px solid #c3e6cb;
    border-radius: 30px;
    color: #155724;
    backdrop-filter: blur(10px);
}

.error-message {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(248, 215, 218, 0.9);
    border: 1px solid #f5c6cb;
    border-radius: 30px;
    color: #721c24;
    backdrop-filter: blur(10px);
}

.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.single-row {
    display: block;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chopache-agreement-wrapper {
        padding: 20px 10px;
    }
    
    .chopache-agreement-container {
        padding: 20px;
    }
    
    .signature-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .signature-item {
        margin-bottom: 15px;
    }
    
    .signature-canvas {
        width: 100%;
        max-width: none;
    }
    
    .signature-section {
        padding: 20px;
    }
    
    .submit-btn {
        width: 100%;
        margin: 10px 0;
    }
}

/* Print Styles */
@media print {
    .chopache-agreement-wrapper {
        background: white;
        padding: 0;
    }
    
    .chopache-agreement-container {
        background: white;
        box-shadow: none;
    }
    
    .submit-section {
        display: none;
    }
    
    .glass1,
    .glass2 {
        background: white;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}