/**
 * Dubb45 Waiver Form Styles
 */

.waiver-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow: hidden;
}

.waiver-form .language-toggle {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-bottom: 3px solid #004270;
    justify-content: center;
}

.waiver-form .language-toggle button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.waiver-form .language-toggle button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.waiver-form .language-toggle button.active {
    background: white;
    color: #0073aa;
    border-color: white;
    font-weight: 600;
}

#form-en,
#form-es {
    padding: 30px 40px;
}

#form-es {
    display: none;
}

#form-en.hidden,
#form-es.hidden {
    display: none !important;
}

.waiver-form form h2 {
    color: #0073aa;
    font-size: 26px;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
    font-weight: 600;
}

.waiver-form form h3 {
    color: #004270;
    font-size: 18px;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.waiver-form form label {
    display: block;
    margin: 15px 0 8px 0;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.waiver-form form input[type="text"],
.waiver-form form input[type="tel"],
.waiver-form form input[type="email"],
.waiver-form form input[type="date"],
.waiver-form form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.waiver-form form input[type="text"]:focus,
.waiver-form form input[type="tel"]:focus,
.waiver-form form input[type="email"]:focus,
.waiver-form form input[type="date"]:focus,
.waiver-form form input[type="file"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.waiver-form form input[type="file"] {
    padding: 10px;
    background: #f8f9fa;
}

.waiver-form form canvas {
    width: 100%;
    height: 150px;
    border: 2px solid #0073aa;
    border-radius: 6px;
    background: #f5f5f5;
    display: block;
    margin-bottom: 15px;
    cursor: crosshair;
}

.waiver-form form button[type="button"] {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.waiver-form form button[type="button"]:hover {
    background: #e0e0e0;
    border-color: #999;
}

.waiver-form form button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.waiver-form form button[type="submit"]:hover {
    background: linear-gradient(135deg, #005a87 0%, #004270 100%);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    transform: translateY(-2px);
}

.waiver-form form button[type="submit"]:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .waiver-form {
        margin: 15px;
    }
    
    #form-en,
    #form-es {
        padding: 20px 25px;
    }
    
    .waiver-form form h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .waiver-form form h3 {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .waiver-form form input,
    .waiver-form form canvas {
        font-size: 16px;
    }
    
    .waiver-form .language-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .waiver-form .language-toggle button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .waiver-form {
        margin: 10px;
        border-radius: 8px;
    }
    
    #form-en,
    #form-es {
        padding: 15px 15px;
    }
    
    .waiver-form form h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .waiver-form form label {
        margin: 12px 0 6px 0;
        font-size: 14px;
    }
    
    .waiver-form form input,
    .waiver-form form canvas {
        padding: 10px 12px;
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .waiver-form form button[type="submit"] {
        padding: 12px 15px;
        font-size: 15px;
        margin-top: 15px;
    }
}

/* Loading and Disabled States */
.waiver-form form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success and Error Messages */
.waiver-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.waiver-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #f44336;
}

/* Print Styles */
@media print {
    .waiver-form {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .waiver-form .language-toggle,
    .waiver-form form button {
        display: none;
    }
}