/* -----------------------------------------------------
   EXTERNAL CSS FOR DHL EVENT TEMPLATE
   -----------------------------------------------------
   Usage:
   1. Place this CSS in your SFMC Content Builder at the 
      designated URL (shown above).
   2. In your CloudPage HTML <head><title></title><meta name="ROBOTS" content="INDEX,FOLLOW"><meta name="keywords" content=""><meta name="description" content="">, reference it via:
         <link rel="stylesheet" href="YOUR_PUBLISHED_CSS_URL" />
   3. Remove any embedded <style> blocks from your main HTML
      so styles are centralized here.
*/

/* FONT: Delivery */
@font-face {
    font-family: 'Delivery';
    src: url('https://image.csi.dhl.com/lib/fe8e13727261077f72/m/1/9df9d0c0-8869-443f-a4e7-92205e97cf8c.txt') format('woff2'),
         url('https://image.csi.dhl.com/lib/fe8e13727261077f72/m/1/76a4972e-0476-4af1-bf68-86a3388a4e3f.txt') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* RESET / BASE STYLES */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Delivery', Arial, sans-serif; /* fallback to Arial */
    position: relative;
    overflow-x: hidden;
    background-color: #fc0; /* DHL Yellow */
}

/* HEADER */
header {
    color: white;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 2rem;
    padding: 1rem;
}

header img {
    max-height: 100%;
    margin-left: 10px;
}

/* MAIN CONTAINER */
main { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
}

/* H1 STYLES */
h1 { 
    text-align: center; 
    margin: 0;
    font-size: 2.5em;
    font-weight: 750;
    color: #D40511; /* DHL red */
    padding: 10px;
}

/* FORM / MESSAGE CONTAINER */
.container {
    max-width: 650px;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    margin: 1rem;
    position: relative;
}

.form-field, .confirmation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

/* SUBMIT BUTTONS */
.submit-btn,
button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #d40511;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    align-self: center;
}

.submit-btn:hover,
button:hover { 
    background-color: #a0030d; 
}

.button-wrapper { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
}

/* LABELS */
label { 
    text-align: left; 
    width: 100%; 
}

/* FIELDS (INPUT, SELECT, TEXTAREA) */
input[type="text"], 
input[type="email"], 
select, 
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Delivery', Arial, sans-serif;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
select:focus, 
textarea:focus {
    border-color: #fc0;
    box-shadow: 0 0 5px #fc0, 0 0 10px #fc0, 0 0 15px #fc0;
    outline: none;
}

/* CHECKBOX CONTAINER */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
}

/* HELPER (HIDDEN / VISIBLE) */
.hidden { 
    display: none; 
}
.visible { 
    display: block; 
}

/* MEDIA QUERY (RESPONSIVE) */
@media (max-width: 600px) { 
    header { 
        text-align: center; 
    } 
}

/* ADDITIONAL TEXT STYLES */
h3 {
    text-align: center;
    margin: 0 auto;
    padding: 10px;
}

p {
    text-align: center;
    margin: 0 auto;
    padding: 10px;
}

.privacy {
    font-size: 12px;
    text-align: center;
}

.header-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* TOPICS CARD */
.topics-card {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.topics-card.open .checkbox-panel,
.topics-card .checkbox-panel {
    max-height: none;
    opacity: 1;
    padding-top: 10px;
    overflow: visible;
    transition: none;
}

.topics-label {
    font-weight: normal;
    position: relative;
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.4em;
    cursor: default;
}

.topics-label strong {
    font-weight: bold;
}

.arrow-indicator {
    margin-left: 10px;
    font-size: 1.2em;
}

.checkbox-panel div {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    background: #ffffffaa;
    border-radius: 4px;
    padding: 5px;
    transition: box-shadow 0.3s ease;
}

.checkbox-panel div:hover {
    box-shadow: 0 0 8px #fc0;
}

.checkbox-panel input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #d40511;
}

/* SECTION DIVIDER */
.section-divider {
    margin: 20px 0;
    border: 0;
    height: 1px;
    background: #ccc;
}
