/* Revlon Glimmer - Pierced with Glimmer theme */
:root {
    --primary-color: #DF237D;
    --primary-dark: #c41e6f;
    --secondary-color: #DF237D;
    --accent-color: #DF237D;
    --dark-color: #000000;
    --light-color: #fdf5f9;
    --text-color: #000000;
    --border-color: #E5E5E5;
    --success-color: #DF237D;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #ECB6AD;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Hero Image - Top of site */
.hero-image-wrap {
    width: 100%;
    line-height: 0;
    position: relative;
}

body.entry-form-active .hero-image-wrap {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.75rem;
    color: #DF237D;
    animation: bounce-down 1s ease-in-out infinite;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

body.scrolled .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 90vh;
    object-fit: cover;
    object-position: top center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Desktop: constrain to mobile-like width for consistent layout */
@media (min-width: 769px) {
    .hero-image-wrap {
        max-width: 420px;
        margin: 0 auto;
    }

    .container {
        max-width: 420px;
    }
}

.hero-copy {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-shop-btn {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
.hero-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.perfume-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-fragrances {
    max-width: 220px !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #DF237D;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.competition-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
}

.detail-item .icon {
    font-size: 1.5em;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(223, 35, 125, 0.35);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 35, 125, 0.45);
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.terms-link {
    margin-top: 20px;
    font-size: 0.9em;
}

.terms-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.footer .brand-accent {
    color: var(--primary-color);
    font-weight: 600;
}

/* Entry Form */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #DF237D;
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.3);
}

.progress-step.completed .step-number {
    background: #c41e6f;
}

.step-label {
    font-size: 0.85em;
    color: #000000;
    font-weight: 700;
}

.progress-line {
    width: 100px;
    height: 3px;
    background: var(--border-color);
    position: relative;
    z-index: 1;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #DF237D;
    margin-bottom: 10px;
    text-align: center;
}

.form-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.05em;
}

/* Photo Tips */
.photo-tips {
    background: linear-gradient(135deg, #FFF8F8 0%, #FFF0F0 50%, #FFE8E8 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(235, 0, 40, 0.15);
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.08);
    position: relative;
    overflow: hidden;
}

.photo-tips::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #DF237D 0%, #e84a9c 100%);
    border-radius: 16px 0 0 16px;
}

.tips-title {
    font-weight: 700;
    font-size: 1rem;
    color: #DF237D;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.tips-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tips-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    transition: transform 0.2s ease;
}

.tips-list li:hover {
    transform: translateX(3px);
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #DF237D 0%, #e84a9c 100%);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(235, 0, 40, 0.3);
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-section.upload-single {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.upload-box {
    position: relative;
}

.upload-label {
    display: block;
    padding: 40px 20px;
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.upload-label:hover {
    border-color: #DF237D;
    background: white;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.upload-label h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.upload-label p {
    font-size: 0.9em;
    color: var(--text-color);
}

.upload-label input[type="file"] {
    display: none;
}

.image-preview {
    display: none;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-preview.show {
    display: block;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.image-preview .remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Fields */
.form-fields {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #000000;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
    color: #000000;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF237D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

.form-group select:hover {
    border-color: #DF237D;
}

.form-group select option {
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
}

.form-group select option:first-child {
    color: #999;
}

/* Searchable Select Dropdown */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select .search-input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
    color: #000000;
    cursor: pointer;
}

.searchable-select .search-input:focus {
    outline: none;
    border-color: #DF237D;
    box-shadow: 0 0 0 3px rgba(235, 0, 40, 0.1);
}

.searchable-select .search-input::placeholder {
    color: #999;
}

.searchable-select .dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #DF237D;
    font-size: 0.8em;
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.3s ease;
}

.searchable-select.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 2px solid #DF237D;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.searchable-select.open .dropdown-list {
    display: block;
}

.dropdown-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
}

.dropdown-item:hover,
.dropdown-item.highlighted {
    background-color: var(--light-color);
}

.dropdown-item.selected {
    background-color: #DF237D;
    color: white;
}

.dropdown-item.hidden {
    display: none;
}

.dropdown-list .no-results {
    padding: 12px 18px;
    color: #999;
    font-style: italic;
    text-align: center;
}

/* Scrollbar styling for dropdown */
.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 0 0 10px 0;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #DF237D;
    border-radius: 4px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #c41e6f;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #DF237D;
    box-shadow: 0 0 0 3px rgba(235, 0, 40, 0.1);
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label a {
    color: #DF237D;
    font-weight: 600;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Review Section */
.review-section {
    margin-bottom: 30px;
}

.review-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.review-item h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.review-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.review-photos img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#reviewDetails {
    display: grid;
    gap: 10px;
}

#reviewDetails p {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

#reviewDetails strong {
    color: #000000;
    font-weight: 700;
}

/* Already Entered Screen */
.already-entered .entry-confirmation {
    background: var(--light-color);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.already-entered .confirmation-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.already-entered .confirmation-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.already-entered .entry-ref {
    font-size: 1.1rem;
    color: #DF237D;
    margin: 0;
}

.already-entered .entry-ref strong {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.whats-next-box {
    background: linear-gradient(135deg, #fff 0%, var(--light-color) 100%);
    border: 2px solid #DF237D;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.whats-next-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #DF237D;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.whats-next-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.whats-next-box .good-luck {
    font-size: 1.1rem;
    font-weight: 600;
    color: #DF237D;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Success Screen */
.success-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.success-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #DF237D;
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-details {
    background: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.success-details p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

#entryReference {
    color: #DF237D;
    font-weight: 700;
}

.social-share {
    margin-top: 30px;
}

.social-share p {
    margin-bottom: 15px;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #fef2f2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
    margin: 20px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #DF237D;
}

.terms-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #DF237D;
    margin-bottom: 20px;
}

.terms-content h3 {
    color: #DF237D;
    font-weight: 700;
    margin: 20px 0 10px;
}

.terms-content h4 {
    color: #000000;
    font-weight: 700;
    margin: 15px 0 10px;
}

.terms-content p,
.terms-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.terms-content ul {
    padding-left: 25px;
}

.terms-content li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-color);
    font-size: 0.9em;
    margin-top: 50px;
}

.footer-powered {
    font-size: 0.7rem;
    color: #888;
    margin-top: 12px;
    margin-bottom: 0;
}

.footer-backlink {
    opacity: 0;
    font-size: 0.7rem;
    display: block;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-image {
        max-height: 85vh;
    }

    .container {
        padding: 10px;
    }

    .brand-logo {
        max-width: 200px;
    }

    .brand-title {
        font-size: 2em;
    }

    .hero-content,
    .form-container,
    .success-content {
        padding: 30px 20px;
    }

    .hero-title,
    .success-title {
        font-size: 1.8em;
    }

    .upload-section {
        grid-template-columns: 1fr;
    }

    .photo-tips {
        padding: 16px 20px;
        border-radius: 14px;
    }

    .tips-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .tips-list {
        gap: 8px;
    }

    .tips-list li {
        font-size: 0.85rem;
        padding-left: 26px;
    }

    .tips-list li::before {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .progress-indicator {
        transform: scale(0.85);
    }

    .progress-line {
        width: 60px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .review-photos {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
        margin: 10px;
    }

    .hero-fragrances {
        max-width: 180px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }

    .form-container {
        padding: 20px 15px;
    }

    .progress-indicator {
        transform: scale(0.7);
    }
}
