/**
 * LVSO Song Evaluation - Frontend Styles
 */

.lvso-form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

.lvso-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.lvso-form-header h2 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 600;
}

.lvso-price {
    color: #555;
    font-size: 18px;
    margin: 0;
}

.lvso-price strong {
    color: #2c7a2c;
    font-size: 24px;
}

/* Test Notice */
.lvso-test-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 25px;
    text-align: center;
    color: #856404;
    font-size: 14px;
}

/* Form Sections */
.lvso-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.lvso-form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lvso-form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Form Rows and Groups */
.lvso-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.lvso-form-row:last-child {
    margin-bottom: 0;
}

.lvso-form-group {
    flex: 1;
    margin-bottom: 18px;
}

.lvso-form-row .lvso-form-group {
    margin-bottom: 0;
}

.lvso-form-group.lvso-full-width {
    width: 100%;
}

.lvso-three-col .lvso-form-group {
    flex: 1;
}

/* Labels */
.lvso-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.lvso-form-group label .required {
    color: #d63638;
}

/* Inputs */
.lvso-form-group input[type="text"],
.lvso-form-group input[type="email"],
.lvso-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lvso-form-group input[type="text"]:focus,
.lvso-form-group input[type="email"]:focus,
.lvso-form-group input[type="tel"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
    outline: none;
}

.lvso-form-group input.lvso-error {
    border-color: #d63638;
}

/* File Upload */
.lvso-file-upload-wrapper {
    position: relative;
}

.lvso-file-upload-wrapper input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.lvso-file-upload-wrapper input[type="file"]:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.lvso-file-upload-wrapper input[type="file"]:focus {
    border-color: #2271b1;
    outline: none;
}

.lvso-file-info {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    display: none;
}

.lvso-file-info.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lvso-file-name {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.lvso-file-size {
    color: #666;
    font-size: 13px;
}

.lvso-field-description {
    margin: 8px 0 0 0;
    color: #666;
    font-size: 13px;
}

/* Upload Progress */
.lvso-upload-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 8px;
}

.lvso-progress-bar {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.lvso-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
    animation: lvso-progress-pulse 1.5s infinite;
}

@keyframes lvso-progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.lvso-progress-text {
    color: #135e96;
    font-size: 14px;
    font-weight: 500;
}

/* Upload Success */
.lvso-upload-success {
    margin-top: 15px;
    padding: 12px 15px;
    background: #d4edda;
    border-radius: 8px;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lvso-upload-success .dashicons {
    color: #28a745;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Payment Section */
.lvso-payment-section {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.lvso-payment-info {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 15px;
    text-align: center;
}

#paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Test Button */
.lvso-test-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px 30px;
    background: linear-gradient(135deg, #28a745, #20883b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lvso-test-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.lvso-test-button:active {
    transform: translateY(0);
}

.lvso-test-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* PayPal Button */
.lvso-paypal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 14px 30px;
    background: linear-gradient(135deg, #ffc439, #ffb700);
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lvso-paypal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 196, 57, 0.5);
}

.lvso-paypal-button:active {
    transform: translateY(0);
}

.lvso-paypal-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lvso-paypal-button img {
    height: 22px;
    width: auto;
}

.lvso-paypal-button span {
    color: #111;
}

/* Validation Message */
.lvso-validation-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-size: 14px;
    text-align: center;
}

/* Success Message */
.lvso-success-message {
    text-align: center;
    padding: 50px 30px;
}

.lvso-success-icon {
    margin-bottom: 20px;
}

.lvso-success-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #28a745;
}

.lvso-success-message h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 28px;
}

.lvso-success-message p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 16px;
}

/* Loading Overlay */
.lvso-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
}

.lvso-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: lvso-spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.lvso-loading-overlay p {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .lvso-form-container {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .lvso-form-header h2 {
        font-size: 22px;
    }
    
    .lvso-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .lvso-form-row .lvso-form-group {
        margin-bottom: 18px;
    }
    
    .lvso-form-row .lvso-form-group:last-child {
        margin-bottom: 0;
    }
    
    .lvso-three-col {
        flex-direction: column;
    }
}
