/* Political Card Module Styles */

/* Card Gallery Styles */
.card-gallery {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media screen and (max-width: 768px) {
    .card-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

.card-option {
    position: relative;
    cursor: pointer;
}

.card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-label {
    display: block;
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-label:hover {
    border-color: #9b009b;
    box-shadow: 0 4px 8px rgba(155, 0, 155, 0.3);
}

.card-image {
    display: block;
    width: 100%;
    height: auto;
}

.card-overlay {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(155, 0, 155, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-check {
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.card-option input[type="radio"]:checked + .card-label {
    border-color: #9b009b;
    box-shadow: 0 4px 12px rgba(155, 0, 155, 0.5);
}

.card-option input[type="radio"]:checked + .card-label .card-overlay {
    opacity: 1;
}

/* Form styles */
#politicalcard_form h3 {
    color: #9b009b;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 19px;
}

#politicalcard_form .form-group {
    margin-bottom: 20px;
}

#politicalcard_form label {
    display: block;
    margin-bottom: 8px;
    color: #545454;
    font-weight: 600;
}

#politicalcard_form .form-control {
    font-family: "Open Sans", Verdana, Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #545454;
    background: #ffffff;
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    padding: 0 15px;
    line-height: 25px;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#politicalcard_form .form-control:focus {
    outline: none;
    border-color: #9b009b;
    box-shadow: 0 0 0 2px rgba(155, 0, 155, 0.1);
}

#politicalcard_form select.form-control {
    height: 40px;
    cursor: pointer;
}

#extra_text {
    resize: vertical;
    height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.6;
}

#politicalcard_form .help-block {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

#submit_button {
    min-width: 200px;
    background-color: #9b009b;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submit_button:hover {
    background-color: #7a0a7a;
    box-shadow: 0 4px 8px rgba(155, 0, 155, 0.3);
    transform: translateY(-1px);
}

#submit_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(155, 0, 155, 0.3);
}

#politicalcard_form .well {
    background-color: #fbf4fb;
    border: 1px solid #e1b2e1;
    border-radius: 5px;
    padding: 15px;
}

/* Success Page Styles */
.success-page {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.success-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: #9b009b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(155, 0, 155, 0.3);
}

.success-title {
    color: #9b009b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.success-message {
    font-size: 18px;
    color: #545454;
    line-height: 1.6;
    margin-bottom: 40px;
}

.success-actions {
}

#send_another_button {
    background-color: #9b009b;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

#send_another_button:hover {
    background-color: #7a0a7a;
    box-shadow: 0 4px 12px rgba(155, 0, 155, 0.4);
    transform: translateY(-2px);
}

#send_another_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(155, 0, 155, 0.4);
}

@media screen and (max-width: 768px) {
    .success-title {
        font-size: 26px;
    }
    
    .success-message {
        font-size: 16px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
    
    #send_another_button {
        min-width: 200px;
        padding: 12px 30px;
    }
}
