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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a3d5c 0%, #1a4d6f 20%, #2d6d59 40%, #3f8668 60%, #52a77d 80%, #6bc9a0 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(45, 156, 219, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(82, 194, 125, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 188, 156, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 20px 20px 40px 20px;
    background: linear-gradient(135deg, rgba(16, 61, 92, 0.95) 0%, rgba(26, 95, 111, 0.9) 50%, rgba(35, 120, 90, 0.95) 100%);
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(45, 156, 219, 0.2);
    border: 1px solid rgba(82, 194, 125, 0.3);
    position: relative;
}

.header-logo {
    display: block;
    margin: 0 auto 20px auto;
    height: 130px;
    width: auto;
    opacity: 1;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.flag-icon {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.flag-icon:hover {
    transform: scale(1.1);
}

.flag-mobile {
    display: none;
}

h1 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(45, 156, 219, 0.4);
    background: linear-gradient(135deg, #fff 0%, #a8e6cf 50%, #84d8f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #a8e6cf;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-style: italic;
    color: #fff8dc;
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sponsor-box {
    background: linear-gradient(135deg, rgba(25, 99, 115, 0.9) 0%, rgba(35, 120, 90, 0.9) 100%);
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(45, 156, 219, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.sponsor-box marquee {
    color: #e0f7fa;
    font-size: 1.05em;
}

.sponsor-box a {
    color: #84d8f5;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sponsor-box a:hover {
    color: #a8e6cf;
    text-decoration: underline;
}

a.brighter-link {
    color: #84d8f5;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

a.brighter-link:hover {
    color: #a8e6cf;
    text-decoration: underline;
}

.form-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 245, 248, 0.95) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(45, 156, 219, 0.15);
    border: 1px solid rgba(45, 156, 219, 0.2);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 80px rgba(45, 156, 219, 0.2);
    border-color: rgba(45, 156, 219, 0.4);
}

.form-section h2 {
    background: linear-gradient(90deg, #0a3d5c 0%, #2d6d59 50%, #2d9cdb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #2d9cdb, #52c27d, transparent) 1;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #0a3d5c 0%, #2d6d59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.05em;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #b8d9e8;
    border-radius: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f5fbfd 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #2d9cdb;
    box-shadow: 0 4px 20px rgba(45, 156, 219, 0.3), 0 0 0 4px rgba(45, 156, 219, 0.1);
    transform: translateY(-1px);
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e8f4f8 0%, #c8e6f0 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #0a3d5c;
    font-weight: 600;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.radio-group label:hover {
    background: linear-gradient(135deg, #c8e6f0 0%, #a5d6e8 100%);
    transform: scale(1.05);
}

input[type="radio"] {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    accent-color: #2d9cdb;
}

.button-group {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2d9cdb 0%, #3fa368 50%, #52c27d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(45, 156, 219, 0.4);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 156, 219, 0.5);
    background: linear-gradient(135deg, #1f7db0 0%, #2d6d59 50%, #3fa368 100%);
}

button:active {
    transform: translateY(-1px);
}

button:disabled {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: none;
}

button:disabled:hover {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

button:disabled::before {
    display: none;
}

.info-box {
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.95) 0%, rgba(232, 245, 233, 0.95) 100%);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #2d9cdb 0%, #26a69a 100%) 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-box h3 {
    background: linear-gradient(90deg, #00695c 0%, #0277bd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(45, 156, 219, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #00695c;
    font-weight: 600;
}

.info-value {
    color: #004d40;
    font-weight: 700;
    background: linear-gradient(135deg, #2d9cdb 0%, #26a69a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .download-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .download-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .download-links {
        grid-template-columns: 1fr;
    }
}

.download-link {
    padding: 12px 15px;
    background: linear-gradient(135deg, #1a5f8f 0%, #2d8659 100%);
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
}

.download-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0f4a6a 0%, #1f6b45 100%);
}

.download-link.disabled {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.download-link.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-link-jpg {
    background: linear-gradient(135deg, #7b2d8f 0%, #9c4daf 100%);
}

.download-link-jpg:hover {
    background: linear-gradient(135deg, #5a1f6a 0%, #7b2d8f 100%);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 20px;
    row-gap: 0;
}

footer {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(16, 61, 92, 0.95) 0%, rgba(26, 95, 111, 0.9) 50%, rgba(35, 120, 90, 0.95) 100%);
    border-radius: 24px;
    margin-top: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(45, 156, 219, 0.2);
    border: 1px solid rgba(82, 194, 125, 0.3);
    color: #e0f7fa;
}

footer p {
    margin: 10px 0;
    font-size: 1.05em;
}

footer a {
    color: #84d8f5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #a8e6cf;
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .form-section {
        padding: 20px;
    }

    .header-logo {
        height: 100px;
        margin-bottom: 15px;
    }

    .title-container {
        flex-direction: column;
        gap: 10px;
    }

    .flag-icon {
        display: none;
    }

    .flag-mobile {
        display: block;
        height: 50px;
        width: auto;
        margin: 10px auto 0 auto;
    }
}

@media (max-width: 1010px) and (min-width: 769px) {
    .header-logo {
        height: 110px;
    }

    h1 {
        font-size: 2.3em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .flag-icon {
        height: 50px;
    }
}

a.link-disabled,
a.link-disabled:hover,
a.link-disabled:visited,
a.link-disabled:focus,
a.link-disabled:active {
    pointer-events: none;
    cursor: not-allowed;
    color: #8b0000 !important;
    opacity: 0.7;
    text-decoration: none !important;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: linear-gradient(135deg, #f0f0f0 0%, #dcdcdc 100%);
    color: #555555;
    border-color: #aaaaaa;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container .icon {
    position: absolute;
    left: 12px;
    top: 45%;
    transform: translateY(-50%);
    color: #777;
    font-size: 20px;
    pointer-events: none; /* allows clicking input through icon */
    z-index: 2;
}

.input-container input {
    width: 100%;
    padding-left: 40px; /* space for the icon */
    box-sizing: border-box;
    z-index: 1;
}

.gradient-divider {
    border: none;
    height: 4px;
    width: 100%;

    /* spacing */
    margin: 0 0 0 0;

    /* gradient */
    background: linear-gradient(
        90deg,
        #1e88e5 0%,
        #1e88e5 20%,
        #26c6da 50%,
        #66bb6a 80%,
        transparent 100%
    );
}

.template-transfer {
    background: linear-gradient(
        135deg,
        rgba(26, 77, 111, 0.9),
        rgba(10, 61, 92, 0.9)
    );
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    color: #ffffff; /* text visible on teal */
}

.template-transfer-text {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #e0e0e0;
    text-align: center;
}

.template-transfer-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}