/* GLOBAL STYLES START */
body {
    font-family: 'Century Gothic', AppleGothic, sans-serif;
    color: #555;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.form-container {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #333;
    white-space: nowrap; /* Forces one line */
    overflow: hidden;
    text-overflow: ellipsis;
}

h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.2rem, 4vw, 2rem); }
h3 { font-size: clamp(1rem, 3vw, 1.5rem); }

.header-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
}

.section-divider {
    border: 0;
    border-top: 2px solid #eee;
    margin: 40px 0;
}
/* GLOBAL STYLES END */

/* SECTION 1 STYLES START */
.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.inline-inputs {
    display: flex;
    gap: 10px;
}

.asterisk {
    color: red;
    margin-left: 5px;
}

.asterisk.valid {
    color: #007bff !important;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.drop-zone.dragover {
    background-color: #e9ecef;
    border-color: #007bff;
}

/* UI Helpers */
.hidden { display: none !important; }
.small { font-size: 0.85rem; }
.error-text { color: red; }
.info-text { color: #007bff; }

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

#submitBtn {
    margin-top: 20px;
    padding: 15px 30px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}
/* SECTION 1 STYLES END */

/* SECTION 2 STYLES START */
.conditions-grid {
    display: grid;
    /* Col 1: Auto, Cols 2-4: 60px fixed, Col 5: Flexible spacer */
    grid-template-columns: auto 60px 60px 60px 1fr;
    gap: 10px 20px; 
    align-items: center;
    margin-bottom: 30px;
}

.grid-header {
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.text-center {
    text-align: center;
    display: flex;
    justify-content: center;
}

.condition-label {
    white-space: nowrap;
}

.auto-header {
    width: 100%;
    display: block;
    margin-top: 30px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.check-item input {
    width: auto; /* Overrides global width 100% if inherited */
}
/* SECTION 2 STYLES END */

/* SECTION 3 STYLES START */
.legal-form {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
}

summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hides default arrow */
}

summary::-webkit-details-marker { display: none; }

.arrow {
    transition: transform 0.3s;
    display: inline-block;
    color: #007bff;
}

details[open] .arrow {
    transform: rotate(90deg);
}

.legal-content {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    line-height: 1.6;
}

.asterisk-wrap { margin-left: 5px; flex-grow: 1; }

.agreement-action { margin-top: 20px; }

.btn-agree {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-agree:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.agree-label { margin-left: 10px; font-weight: bold; }
/* SECTION 3 STYLES END */

/* SECTION 4 STYLES START */
.messenger-placeholder {
    padding: 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.messenger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 10px;
    margin-top: 10px;
}

.messenger-opt {
    padding: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 4px;
    font-weight: bold;
}

/* Messenger Colors */
.whatsapp { background-color: #2ab34b; }
.instagram { background-color: #de306c; }
.tiktok { background-color: #000000; }
.snapchat { background-color: #FFFC00; color: #000; }
.facebook { background-color: #4168b2; }
.cellphone { background-color: #36abe1; }

.messenger-opt i {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.selected-grid {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    gap: 15px;
    align-items: center;
}

.char-counter { text-align: right; font-size: 0.8rem; color: #888; }

/* Video Styles */
#video-container { margin-top: 15px; background: #000; padding: 10px; border-radius: 8px; text-align: center; }
#preview, #recording { width: 100%; max-width: 400px; border-radius: 4px; }
#timer { color: #ff0000; font-family: monospace; font-size: 1.2rem; margin: 5px 0; }
.video-controls { margin-top: 10px; display: flex; justify-content: center; gap: 10px; }

.size-preview {
    font-size: 0.8rem;
    color: #007bff;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
}

.size-preview.too-large {
    color: #dc3545; /* Red color if file exceeds limit */
}

#selected-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#selected-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* SECTION 4 STYLES END */

/* SECTION 5 STYLES START */
.declaration-box, .agreement-box {
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    background: #fff;
    transition: background 0.3s;
}

.agreement-box:hover:not(.disabled) {
    background-color: #f0f7ff;
}

.error-msg-box {
    border: 1px solid #ff0000;
    background-color: #fff5f5;
    color: #cc0000;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
}

#error-summary {
    border: 1px solid #ff0000;
    background-color: #fff5f5; /* Very light red */
    color: #cc0000;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    text-align: left;
}

#error-summary ul {
    margin: 5px 0 0 20px;
    padding: 0;
}


#submitBtn {
    background-color: #555;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: all 0.4s ease; /* Smoothly fade in the glow */
}

#submitBtn.valid-submit {
    background-color: #007bff !important;
    /* Soft glowing effect using stacked shadows */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4), 
                0 0 20px rgba(0, 123, 255, 0.2), 
                0 0 30px rgba(0, 123, 255, 0.1);
    animation: soft-pulse 2s infinite ease-in-out; /* Optional pulsing effect */
}

/* Optional: Gentle pulsing animation to draw more attention */
@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 25px rgba(0, 123, 255, 0.7); transform: scale(1.01); }
}

@keyframes error-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; color: #ff0000; text-shadow: 0 0 10px rgba(255,0,0,0.5); }
}

.asterisk:not(.valid).pulse-error {
    animation: error-pulse 0.5s 3;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}
/* SECTION 5 STYLES END */

/* SUCCESS OVERLAY STYLES */
#success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-content {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-circle {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    font-size: 50px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.progress-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

progress {
    width: 100%;
    height: 20px;
    appearance: none;
    border-radius: 10px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #eee;
}

progress::-webkit-progress-value {
    background-color: #007bff;
    transition: width 0.3s ease;
}

#percent-text {
    font-weight: bold;
    color: #007bff;
}


.btn-cancel {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background-color: #c82333;
}

