/* Compact SPGL-style CSS for iframe integration */

/* In-place success message boxes */
.success-message-box {
    padding: 40px;
    text-align: center;
    background: #d1edff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    color: #004499;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.success-message-box .success-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.success-message-box .success-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.success-message-box .success-detail {
    margin-bottom: 15px;
}

.success-message-box .success-description {
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message-box .success-button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.success-message-box .success-button:hover {
    background: #0052a3;
}

/* Global compact styles matching SPGL */
.compact-body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Container styles */
.compact-container {
    max-width: 100%;
    padding: 0 0 10px 0;
    margin: 0;
}


/* Card styles - very compact */
.compact-card {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 12px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.compact-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 3px 3px 0 0;
}

.compact-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    line-height: 1.3;
}

.compact-card-body {
    padding: 12px;
}

/* Text styles */
.compact-text {
    font-size: 13px;
    line-height: 1.4;
    color: #606068;
    margin: 0 0 10px 0;
}

/* List styles */
.compact-list {
    font-size: 12px;
    line-height: 1.4;
    color: #606068;
    margin: 8px 0 10px 18px;
    padding: 0;
}

.compact-list li {
    margin-bottom: 3px;
}

/* Link styles */
.compact-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.compact-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Button styles - compact */
.compact-buttons {
    margin: 10px 0;
}

.compact-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    padding: 6px 12px;
    margin: 2px 4px 2px 0;
    border: 1px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.compact-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

.compact-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.compact-btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
    color: #ffffff;
    text-decoration: none;
}

.compact-btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.compact-btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
    text-decoration: none;
}

/* Note and warning styles */
.compact-note {
    font-size: 11px;
    line-height: 1.3;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 6px 8px;
    margin-top: 8px;
}

.compact-warning {
    font-size: 11px;
    line-height: 1.3;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 6px 8px;
    margin: 8px 0;
}

/* Compact dropzone */
.compact-dropzone {
    border: 2px dashed #ccc;
    border-radius: 3px;
    background: #fafafa;
    padding: 12px;
    text-align: center;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-dropzone:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.compact-dropzone.dz-drag-hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.compact-upload-icon {
    font-size: 20px;
    margin-bottom: 3px;
    opacity: 0.6;
}

.compact-upload-text {
    font-size: 12px;
    font-weight: 500;
    color: #606068;
    margin: 0 0 3px 0;
}

.compact-upload-hint {
    font-size: 11px;
    color: #808080;
}

/* Dropzone is always enabled in invisible mode */

/* Success and error messages */
.compact-success {
    font-size: 12px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 6px 8px;
    margin: 8px 0;
}

.compact-error {
    font-size: 12px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    padding: 6px 8px;
    margin: 8px 0;
}

/* Dropzone file preview styles */
.compact-dropzone .dz-preview {
    margin: 8px 0;
    padding: 6px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 11px;
}

.compact-dropzone .dz-preview .dz-filename {
    font-size: 11px;
    font-weight: 500;
}

.compact-dropzone .dz-preview .dz-size {
    font-size: 10px;
    color: #808080;
}

.compact-dropzone .dz-preview .dz-progress {
    background: #e9ecef;
    border-radius: 2px;
    height: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.compact-dropzone .dz-preview .dz-upload {
    background: #007bff;
    border-radius: 2px;
}

.compact-dropzone .dz-preview.dz-success .dz-success-mark {
    color: #28a745;
    font-size: 12px;
}

.compact-dropzone .dz-preview.dz-error .dz-error-mark {
    color: #dc3545;
    font-size: 12px;
}

.compact-dropzone .dz-preview .dz-remove {
    font-size: 10px;
    color: #6c757d;
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}

.compact-dropzone .dz-preview .dz-remove:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compact-container {
        padding: 0 0 8px 0;
    }

    .compact-card {
        margin-bottom: 10px;
    }

    .compact-card-header,
    .compact-card-body {
        padding: 10px;
    }

    .compact-btn {
        display: block;
        width: 100%;
        margin: 3px 0;
    }

    .compact-dropzone {
        padding: 12px;
    }
}

/* Hide Bootstrap elements when not needed */
.d-none {
    display: none !important;
}

/* Override any Bootstrap interference */
.compact-container * {
    box-sizing: border-box;
}

/* Ensure text stays readable */
.compact-card-body p:last-child {
    margin-bottom: 0;
}

/* Success Modal Styles */
.modal-content {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
}

.modal-header {
    padding: 10px 15px;
}

.modal-title {
    font-size: 14px;
    font-weight: 600;
}

.modal-body {
    padding: 15px;
}

.modal-body p {
    font-size: 13px;
    line-height: 1.4;
}

.modal-footer {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
}

.modal-footer .btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* Introduction Section Styles - Match SPGL website */
.introduction-section {
    margin-bottom: 20px;
    padding: 0;
    background: none;
    border: none;
}

.introduction-title {
    font-size: 24px;
    font-weight: normal;
    color: #333333;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: left;
}

.introduction-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 20px 0;
    text-align: left;
}

/* Option Section Styles */
.option-section {
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 0 0 15px 0;
}

.option-section:last-child {
    margin-bottom: 0;
}

.option-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 4px 4px 0 0;
}

/* Add margin to first element after option header */
.option-header + .compact-card {
    margin-top: 15px;
}

/* Add side padding to content inside option sections, but not headers */
.option-section .compact-card,
.option-section .spgl-form {
    margin-left: 15px;
    margin-right: 15px;
}

.option-title {
    font-size: 16px;
    font-weight: 700;
    color: #d42d3a;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.option-description {
    font-size: 13px;
    color: #606068;
    margin: 0;
    line-height: 1.4;
    font-style: normal;
}

/* Consistent styling for all option sections */

/* Form Styles - matching SPGL website */
.spgl-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.form-icon {
    font-size: 12px;
    margin-right: 5px;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #d42d3a;
    box-shadow: 0 0 0 2px rgba(212, 45, 58, 0.1);
}

.form-control:invalid {
    border-color: #dc3545;
}

/* Textarea specific styling */
textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* reCAPTCHA styling */
.recaptcha-group {
    margin: 15px 0;
    text-align: center;
}

.g-recaptcha {
    display: inline-block;
}

/* Button styling for forms */
.compact-btn-primary {
    background-color: #d42d3a;
    border-color: #d42d3a;
    color: #ffffff;
    font-weight: 600;
}

.compact-btn-primary:hover {
    background-color: #b8252f;
    border-color: #b8252f;
    color: #ffffff;
    text-decoration: none;
}

.compact-btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

/* Form success and error messages */
.compact-success {
    font-size: 12px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 10px 0;
}

.compact-error {
    font-size: 12px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 10px 0;
}

/* Mobile responsive adjustments for options */
@media (max-width: 768px) {
    .option-section {
        margin-bottom: 20px;
    }

    .option-header {
        padding: 12px 15px;
    }

    .option-title {
        font-size: 15px;
    }

    .option-description {
        font-size: 12px;
    }

    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .recaptcha-group {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Iframe-friendly styles */
body.compact-body {
    overflow-x: hidden;
}

.compact-container {
    min-height: auto;
}

/* Hide Turnstile widget spacing */
.cf-turnstile {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}