/* Frontend Styles */

.bdh-download-container {
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    max-width: 100%;
}

.bdh-book-info {
    margin-bottom: 25px;
}

.bdh-book-info h3 {
    color: #333;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.bdh-book-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

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

.bdh-form-group {
    display: flex;
    flex-direction: column;
}

.bdh-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.bdh-form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.bdh-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.bdh-amount-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bdh-help-text {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.bdh-button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.bdh-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    border-radius: 100px; 
}

.bdh-form-group input {
    border-radius: 50px;
}

.bdh-btn-primary {
    background: #eef1f3;
    color: #16407d;
    font-size: 12px;
    text-transform: uppercase;
}


.bdh-btn-primary:active {
    transform: scale(0.98);
}

.bdh-btn-secondary {
    background: #6c757d;
    color: white;
}

.bdh-btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.bdh-btn-secondary:active {
    transform: scale(0.98);
}

.bdh-btn-download {
    background: #0073aa;
    color: white;
    flex: 1;
}

.bdh-btn-download:hover {
    background: #005a87;
}

.bdh-btn-download:active {
    transform: scale(0.98);
}

.bdh-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}
.bdh-message {
    margin-top: 20px;
}

.bdh-message div {
    display: block;
}

.bdh-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
    padding: 15px;
    border-radius: 4px;
}

.bdh-success-with-button {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.bdh-success-with-button h3 {
    margin: 0 0 15px 0;
}

.bdh-error {
    background: #ffedef;
    color: #721c24;
    border: 1px solid #b22534;
    display: block;
    padding: 15px;
    border-radius: 4px;
    border-radius: 100px;
    padding-left: 29px;
}

.bdh-loading {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
    display: block;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.bdh-success-message,
.bdh-error-message {
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.bdh-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bdh-success-message h2 {
    margin: 0 0 10px 0;
    color: #155724;
}

.bdh-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bdh-error-message h2 {
    margin: 0 0 10px 0;
    color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
    .bdh-download-container {
        padding: 20px;
        max-width: 100%;
    }

    .bdh-book-info h3 {
        font-size: 20px;
    }

    .bdh-button-group {
        flex-direction: column;
    }

    .bdh-btn {
        width: 100%;
    }
}
