/*
Theme Name: Bens
Theme URI: https://trendo.me
Author: Trendo Team
Author URI: https://trendo.me
Description: The theme fits your site ;)
Version: 1.0.0
Tested up to: 6.1
Requires PHP: 5.6
*/

/* ========================================
   BEN'S BEST DRESSED PUP CONTEST - CSS
   Add this to: Appearance > Customize > Additional CSS
   ======================================== */

/* Remove space above contest page - Page ID 4266 */
.page-id-4266 .terms__topography {
    display: none;
}

/* Contest Wrapper */
.bens-contest-wrapper * {
    box-sizing: border-box;
}

.bens-contest-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.bens-hero {
    background: linear-gradient(135deg, #1e5a8e 0%, #2d7bb5 100%);
    color: white;
    padding: 40px 20px 60px;
    text-align: center;
    margin: 0 -20px;
}

.bens-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white !important;
}

.bens-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Prize Banner */
.bens-prize-banner {
    background: #ff6b35;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 -20px;
}

/* Container */
.bens-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Image Gallery */
.bens-image-gallery {
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.bens-gallery-row {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto !important;
}

@media (min-width: 768px) {
    .bens-gallery-row {
        flex-direction: row !important;
    }
}

.bens-gallery-item {
    flex: 0 1 auto;
}

.bens-gallery-item img {
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bens-gallery-item img:hover {
    transform: scale(1.05);
}

/* Sections */
.bens-section {
    margin: 60px 0;
}

.bens-section h2 {
    color: #1e5a8e !important;
    font-size: 2.2rem !important;
    margin-bottom: 25px;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 10px;
}

/* How It Works */
.bens-how-it-works {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .bens-how-it-works {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bens-step {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.bens-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bens-step-number {
    background: #1e5a8e;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.bens-step h3 {
    color: #1e5a8e !important;
    margin-bottom: 15px;
    font-size: 1.3rem !important;
}

/* CTA Section */
.bens-cta-section {
    background: linear-gradient(135deg, #2d7bb5 0%, #1e5a8e 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    margin: 60px 0;
}

.bens-cta-section h2 {
    color: white !important;
    border: none !important;
    margin-bottom: 20px;
}

.bens-cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white !important;
    padding: 18px 45px;
    font-size: 1.2rem;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bens-cta-button:hover {
    background: #e55a25;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: white !important;
}

/* Rules List */
.bens-rules-list {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #1e5a8e;
}

.bens-rules-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.bens-rules-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
}

.bens-rules-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Info Box */
.bens-info-box {
    background: #fff8e1;
    border: 2px solid #ffc107;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.bens-info-box strong {
    color: #1e5a8e;
    font-size: 1.1rem;
}

/* ========================================
   CONTEST FORM STYLES
   ======================================== */

#bensContestForm {
    margin: auto;
}

.contest_description {
    text-align: center;
}

#field_6_7,
#field_6_8,
#field_6_6 {
    width: 100%;
}

#field_6_8 {
    padding-bottom: clamp(10px, 100vw, 0.520833vw);
    background-color: rgb(237, 244, 252);
}

#input_6_8 {
    padding-bottom: unset;
}

#gfield_upload_rules_6_8 {
    display: block;
    margin-top: clamp(15px, 100vw, .78125vw);
}

#field_6_8 .validation_message--hidden-on-empty {
    display: none;
}

#field_6_8 .validation_message {
    top: calc(clamp(39px,100vw,2.9166666667vw)/ 2);
}

#field_6_8 .gform_fileupload_rules {
    padding-right: clamp(36px, 100vw, 1.875vw);
    padding-left: clamp(16px, 100vw, 0.833333vw);
    font-size: clamp(16px, 100vw, 0.9vw);
}

#gform_preview_6_8 {
    padding-right: clamp(36px, 100vw, 1.875vw);
    padding-left: clamp(16px, 100vw, 0.833333vw);
}

#gform_preview_6_8 .gfield_fileupload_filename,
#gform_preview_6_8 .gfield_fileupload_percent,
#gform_preview_6_8 .gform_delete_file {
    color: var(--black-color);
}

#gform_preview_6_8 .screen-reader-text {
    display: none;
}

#gform_preview_6_8 .ginput_preview {
    display: flex;
}

#gform_preview_6_8 .gform_delete_file {
    margin-top: unset;
    order: -1;
    width: unset;
}

#gform_preview_6_8 .gform_delete_file .dashicons-trash {
    filter: unset;
}

#field_6_10 {
    padding-right: clamp(36px, 100vw, 1.875vw);
    padding-left: clamp(16px, 100vw, 0.833333vw);
}

#field_6_10 .gfield_required_text {
   display: none;
}

#field_6_10 label {
    font-size: clamp(16px, 100vw, 0.9vw);
    line-height: 120%;
}

#field_6_10 label::before {
    top: 10%;
}

#field_6_10 label::after {
    top: 10%;
}

#field_6_10 .validation_message {
    top: 0;
    transform: unset;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .bens-hero h1 {
        font-size: 2rem !important;
    }

    .bens-hero p {
        font-size: 1.1rem;
    }

    .bens-section h2 {
        font-size: 1.8rem !important;
    }

    .bens-hero, .bens-prize-banner {
        margin: 0 -15px;
    }

    .bens-gallery-item img {
        max-height: 300px;
    }
}
