/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

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

/* Thank you page styling */
.thank-you-page {
    background: linear-gradient(135deg, #0c3632 0%, #17baaa 100%);
    min-height: 100vh;
    color: #fff;
}

.petition-thankyou {
    padding: 60px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content-section {
    width: 100%;
    max-width: 800px;
}

/* Logo styling */
.logo-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center; /* Center on mobile */
}

.logo {
    height: auto;
    max-height: 50px;
    max-width: 160px;
    display: block;
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 40px 0;
    text-align: center;
}

/* Main content layout */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Photo styling - matching the petition template */
.photo-wrapper {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.photo {
    background: #fff;
    border: 1px solid #d6dcdb;
    padding: 10px;
    position: relative;
    height: 0;
    padding-bottom: 85%;
    box-shadow: 5px 5px 5px -5px rgba(0, 0, 0, 0.2);
    transform: rotate(-0.5deg);
}

.photo img {
    position: absolute;
    top: 10px;
    left: 10px;
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    object-fit: cover;
    display: block;
}

/* Text content */
.text-content {
    max-width: 600px;
    text-align: center;
}

.main-message {
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.deadline-message {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
}

/* Call-to-action link styling */
.cta-link {
    color: #e2c674;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cta-link:hover {
    color: #a08845;
    text-decoration: none;
}

/* Desktop logo positioning */
@media (min-width: 768px) {
    .logo-wrapper {
        justify-content: center; /* Center on desktop */
        margin-bottom: 60px;
    }
}

/* Responsive design */
@media (max-width: 767px) {
    h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .petition-thankyou {
        padding: 40px 0 60px;
    }

    .main-content {
        gap: 30px;
    }

    .photo-wrapper {
        max-width: 250px;
    }

    .main-message {
        font-size: 28px;
    }

    .deadline-message {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .main-message {
        font-size: 24px;
    }

    .deadline-message {
        font-size: 13px;
    }
}

/* Accessibility */
.cta-link:focus {
    outline: 2px solid #e2c674;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .thank-you-page {
        background: #fff;
        color: #333;
    }

    .cta-link {
        color: #17baaa;
    }
}