/* app/static/style.css */

/* ---------- Web-font ---------- */
@font-face {
    font-family: 'Helvetica Light';
    src: local('Helvetica Light'),
         url('/HelveticaLight.woff2') format('woff2'),
         url('/HelveticaLight.ttf')   format('truetype');
}

/* ---------- Base layout ---------- */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    margin: 2%;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 90%;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 250%;
    margin-bottom: 3%;
    font-weight: 200;
}

.tagline {
    font-size: 120%;
    font-weight: 300;
    margin-top: -2%;
    margin-bottom: 3%;
    color: #666;
}

.section-title {
    font-size: 150%;
    font-weight: 300;
    margin-top: 3%;
    margin-bottom: 0;
    color: #333;
}

.duration-title {            /* so the icon sticks nicely beside text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ---------- Info icon & tooltip ---------- */

.info-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    text-align: center;
    cursor: help;
    user-select: none;
}

.info-icon .tooltip {
    display: none;
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 80%;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.info-icon:hover .tooltip,
.info-icon:focus .tooltip { display: block; }

/* ---------- Form elements ---------- */

label { display: block; margin-top: 1%; font-weight: 200; }

.centered-input input {
    margin: 0 auto;
    display: block;
    width: 60%;
    padding: 1% 3%;
    font-size: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-weight: 300;
}

/*
button {
    margin-top: 5%;
    padding: 1% 3%;
    font-size: 100%;
    cursor: pointer;
    font-weight: 200;
}
*/
.image-button {
    background: none;
    border: none;
    padding: 0;
    margin-top: 5%;
    margin-bottom: 2%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
}

.image-button img {
    max-width: 300px;
    width: 40%;
    height: auto;
    display: block;
}

.stripe-image {
    max-width: 320px;
    width: 40%;
    margin-bottom: 5%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}




/* ---------- Gender image buttons ---------- */

.gender-group {
    display: flex;
    justify-content: center;
    gap: 4%;
    margin-top: 1%;
}

.gender-group input[type="radio"] { display: none; }

.gender-group label {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border 0.2s;
}

.gender-group label img {
    display: block;
    max-height: 80px;
    width: auto;
    padding: 5px;
}

.gender-group input[type="radio"]:checked + label {
    border: 2px solid #007bff;
}

/* ---------- Duration square buttons ---------- */

.duration-group {
    display: flex;
    justify-content: center;
    gap: 0%;
    margin-top: 1%;
}

.duration-group input[type="radio"] { display: none; }

.duration-group label {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 18px;
    width: 100px;             /* ← was 90px, widened for “4 seconds” */
    text-align: center;
    transition: border 0.2s;
    line-height: 1.25;
}

.duration-group label .price { font-size: 125%; font-weight: 500; display: block; }
.duration-group label .time  { font-size: 85%;  font-weight: 300; }

.duration-group input[type="radio"]:checked + label {
    border: 2px solid #007bff;
}

/* ---------- Drag-and-drop boxes ---------- */

.drop-box {
    border: 2px dotted #666;
    padding: 5%;
    margin-top: 1.2%;
    cursor: pointer;
    position: relative;
    border-radius: 2%;
    background: #fdfdfd;
    transition: background 0.2s;
    overflow: hidden;
    font-weight: 200;
    max-width: 100%;

    /* center contents */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-box.hover { background: #eef9ff; }

.drop-box input      { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-text           { color: #666; font-size: 95%; text-align: center; }

/* ---------- Preview thumbnails ---------- */

/* Mobile-first cap */
.preview,
video.preview {
    display: none;
    margin-top: 2%;
    max-width: 100%;
    max-height: 200px;              /* 200 px on phones */
    border-radius: 4px;
}

.remove-btn {
    position: absolute;
    top: 1%;
    right: 2%;
    background: #fff;
    color: #c00;
    border: none;
    font-size: 120%;
    font-weight: bold;
    cursor: pointer;
    display: none;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

/* ---------- Banner video ---------- */
.banner-video {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2%;
}



/* ---------- Accordion styles ---------- */

.accordion-header {
    margin-top: 4%;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    user-select: none;
    transition: background 0.2s;
    width: 50%;
    display: inline-block;
    font-weight: 400;
}

.accordion-header:hover {
    background: #ebebeb;
}

.accordion-body {
    display: none;
    margin-top: 0.5rem;
}

.accordion.open .accordion-body {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

.footer {
    margin-top: 4%;
    text-align: center;
    font-size: 125%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Responsive layout ---------- */

@media (min-width: 640px) {         /* ▼ lowered from 768px */
    /* side-by-side media inputs */
    .media-inputs {
        display: flex;
        justify-content: center;
        gap: 4%;
        margin-bottom: 2%;
    }

    .media-inputs .input-block { width: 48%; }
    .media-inputs .drop-box   { max-width: 100%; }

    /* larger previews */
    .preview,
    video.preview {
        max-height: 300px;
    }

    .banner-video { width: 45%; }
    .accordion-header {width: 30%; }
}
