/*colors*/
:root {
    --navy-blue: #4a5f7f;
    --muted-navy: #5a7ba6;
    --light-navy: #7a99c4;
    --dusty-pink: #d4a5a5;
    --soft-pink: #e8c4c4;
    --pale-pink: #f5e1e1;
    --dark-grey: #4a4a4a;
    --medium-grey: #7a7a7a;
    --light-grey: #e8e8e8;
    --off-white: #f8f8f8;
}

/*styles*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #5a7ba6 0%, #d4a5a5 100%);
    color: var(--dark-grey);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

#main {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(74, 95, 127, 0.2);
}

/*type*/
h1 {
    color: var(--navy-blue);
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(74, 95, 127, 0.1);
}

h2 {
    color: var(--muted-navy);
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    font-weight: 600;
    border-bottom: 3px solid var(--dusty-pink);
    padding-bottom: 10px;
}

h3 {
    color: var(--navy-blue);
    font-size: 1.3em;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: var(--dark-grey);
}

a {
    color: var(--muted-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dusty-pink);
    text-decoration: underline;
}

/*nav*/
nav {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--muted-navy) 100%);
    padding: 15px 0;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(74, 95, 127, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

nav li {
    margin: 5px;
}

nav a {
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a:hover {
    background: var(--dusty-pink);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 165, 165, 0.3);
}

/* ===========================
   Forms
   =========================== */
form {
    background: var(--off-white);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--light-grey);
    margin: 25px 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy-blue);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--light-grey);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--muted-navy);
    box-shadow: 0 0 8px rgba(90, 123, 166, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button,
input[type="submit"] {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--muted-navy) 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 95, 127, 0.3);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--muted-navy) 0%, var(--dusty-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 95, 127, 0.4);
}

button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/*Voting*/
.voting-container {
    background: var(--pale-pink);
    padding: 30px;
    border-radius: 10px;
    margin: 25px 0;
    border: 2px solid var(--soft-pink);
}

.destination-option {
    background: white;
    border: 2px solid var(--light-grey);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.destination-option:hover {
    border-color: var(--muted-navy);
    box-shadow: 0 4px 15px rgba(90, 123, 166, 0.15);
    transform: translateX(5px);
}

.destination-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: var(--muted-navy);
}

.destination-option label {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
}

.destination-option h3 {
    margin: 0 0 8px 0;
    color: var(--navy-blue);
}

.destination-option p {
    margin: 0;
    color: var(--medium-grey);
}

/*Results*/
.results-container {
    margin: 30px 0;
}

.result-item {
    background: var(--off-white);
    border: 2px solid var(--light-grey);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 6px 20px rgba(74, 95, 127, 0.15);
}

.result-item.voted-for {
    background: var(--pale-pink);
    border-color: var(--dusty-pink);
    box-shadow: 0 4px 12px rgba(212, 165, 165, 0.3);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rank {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--muted-navy) 100%);
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(74, 95, 127, 0.3);
}

.result-item h2 {
    margin: 0;
    flex: 1;
    color: var(--navy-blue);
}

.destination-description {
    color: var(--medium-grey);
    font-style: italic;
    margin-bottom: 15px;
}

.vote-bar-container {
    width: 100%;
    background: var(--light-grey);
    border-radius: 20px;
    height: 35px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(74, 95, 127, 0.1);
}

.vote-bar {
    background: linear-gradient(90deg, var(--muted-navy), var(--dusty-pink));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    border-radius: 20px;
}

.vote-percentage {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(74, 95, 127, 0.3);
}

.your-vote {
    color: var(--muted-navy);
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.your-vote::before {
    content: "✓";
    font-size: 1.3em;
    color: var(--dusty-pink);
}

/*messages*/
.success-message {
    background: var(--pale-pink);
    border: 2px solid var(--soft-pink);
    color: var(--navy-blue);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message::before {
    content: "✓";
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dusty-pink);
}

.error-message {
    background: #f8e8e8;
    border: 2px solid var(--dusty-pink);
    color: var(--dark-grey);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message::before {
    content: "✕";
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dusty-pink);
}

.info-message {
    background: #e8f0f8;
    border: 2px solid var(--light-navy);
    color: var(--navy-blue);
    padding: 15px 20px;
    border-radius: 8px