/* ======================
   LAYOUT
====================== */

.candidate-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.candidate-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* ======================
   IMAGE
====================== */

.candidate-media {
    height: 100%;
}

.candidate-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================
   INFO
====================== */

.candidate-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.candidate-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.contest-name {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9C04DA;
    opacity: 0.7;
}

.candidate-bio {
    margin: 30px 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* ======================
   VOTE BOX
====================== */

.vote-box {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.vote-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 500;
    color: #444;
}

.vote-price {
    color: #9C04DA;
    font-weight: 600;
}

.vote-free {
    color: #4CAF50;
}

/* ======================
   FORM
====================== */

.pay-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pay-form input,
.pay-form select {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    font-size: 0.95rem;
    background: #fafafa;
    transition: all 0.2s ease;
}

.pay-form input:focus,
.pay-form select:focus {
    border-color: #9C04DA;
    background: #fff;
    outline: none;
}

/* ======================
   BUTTONS
====================== */

.btn-vote {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #9C04DA;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-vote:hover {
    background: #7a03b0;
}

.btn-vote-outline {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #9C04DA;
    color: #9C04DA;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-vote-outline:hover {
    background: #9C04DA;
    color: white;
}

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

@media (max-width: 900px) {
    .candidate-card {
        grid-template-columns: 1fr;
    }

    .candidate-info {
        padding: 40px 25px;
    }

    .candidate-media {
        height: 350px;
    }
}