/* Angel Tree Frontend Styles */

.angel-tree-frontend-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Header */
.angel-tree-header {
    text-align: center;
    margin-bottom: 40px;
}

.angel-tree-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.angel-tree-main-title {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 10px;
    font-weight: 600;
}

.angel-tree-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* Section Management */
.angel-tree-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.angel-tree-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Card */
.angel-tree-search-card,
.angel-tree-info-card {
    background: #ffffff;
    border: 2px solid #e74c3c;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.1);
}

.angel-tree-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.angel-tree-form-row-inline {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.angel-tree-form-group-inline {
    flex: 1;
    min-width: 200px;
}

.angel-tree-form-group {
    margin-bottom: 25px;
}

.angel-tree-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.required {
    color: #e74c3c;
}

.select_boxs,
.angel-tree-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.select_boxs:focus,
.angel-tree-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Buttons */
.angel-tree-search-btn,
.angel-tree-continue-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff !important;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.angel-tree-form-row-inline .angel-tree-search-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 30px;
    align-self: flex-end;
}

.angel-tree-search-btn:hover,
.angel-tree-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.angel-tree-search-btn:active,
.angel-tree-continue-btn:active {
    transform: translateY(0);
}

.angel-tree-search-btn:disabled,
.angel-tree-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Angel Result Card */
.angel-tree-result-card {
    margin-bottom: 30px;
}

.angel-card {
    background: #ffffff;
    border: 3px solid #27ae60;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.angel-card-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.angel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.angel-card-details {
    padding: 30px;
}

.angel-card-title {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #27ae60;
}

.angel-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.angel-detail-label {
    font-weight: 600;
    color: #555;
    min-width: 180px;
    flex-shrink: 0;
}

.angel-detail-value {
    color: #333;
    flex: 1;
}

/* Loading Spinner */
.angel-tree-loading {
    text-align: center;
    padding: 60px 20px;
}

.angel-tree-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e74c3c;
    border-right: 5px solid #e74c3c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.angel-tree-pdf-loading .angel-tree-spinner {
    width: 70px;
    height: 70px;
    border-width: 6px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.angel-tree-loading p {
    color: #666;
    font-size: 16px;
}

/* Modal */
.angel-tree-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.angel-tree-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.angel-tree-modal-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.angel-tree-modal-content h3 {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.angel-tree-modal-body {
    margin: 30px 0;
}

.angel-tree-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 15px;
}

.angel-tree-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.angel-tree-checkbox-label span {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.angel-tree-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.angel-tree-btn-primary,
.angel-tree-btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.angel-tree-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.angel-tree-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.angel-tree-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.angel-tree-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.angel-tree-btn-secondary:hover {
    background: #7f8c8d;
}

/* Thank You Section */
.angel-tree-thankyou-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.3);
    margin-bottom: 30px;
}

.angel-tree-thankyou-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.angel-tree-thankyou-message h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

.angel-tree-thankyou-message p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ffffff;
    opacity: 1;
}

/* Angel Tree Flyer Styles */
.angel-tree-flyer {
    background: #ffffff;
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    border: 3px solid #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.angel-flyer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
}

.angel-flyer-logo img {
    max-width: 120px;
    height: auto;
}

.angel-flyer-title h1 {
    font-size: 36px;
    color: #00693e;
    margin: 0;
    line-height: 1.2;
    font-weight: bold;
    font-family: 'Georgia', serif;
}

.angel-flyer-title h2 {
    font-size: 20px;
    color: #00693e;
    margin: 5px 0 0 0;
    font-family: 'Georgia', serif;
}

.angel-flyer-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 30px;
}

.angel-flyer-instructions {
    font-size: 12px;
    line-height: 1.5;
}

.angel-flyer-instructions h3 {
    color: #00693e;
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.angel-flyer-instructions ol {
    margin-left: 20px;
    padding-left: 0;
}

.angel-flyer-instructions li {
    margin-bottom: 8px;
}

.angel-flyer-deadline {
    background: #fff9e6;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #f59e0b;
}

.angel-flyer-dropoff {
    background: #e8f5e9;
    padding: 15px;
    margin: 15px 0;
}

.angel-flyer-dropoff h4 {
    color: #fff;
    background: #00693e;
    padding: 10px;
    margin: -15px -15px 10px -15px;
    text-align: center;
    font-size: 12px;
}

.angel-flyer-dropoff p {
    margin: 5px 0;
    text-align: center;
}

.angel-flyer-remember {
    background: #ffebee;
    padding: 15px;
    margin: 15px 0;
}

.angel-flyer-remember h4 {
    color: #fff;
    background: #d32f2f;
    padding: 10px;
    margin: -15px -15px 10px -15px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
}

.angel-flyer-remember p {
    margin: 5px 0;
    text-align: center;
}

.angel-flyer-sidebar {
    border: 2px solid #000;
    padding: 15px;
    background: #fff;
    position: relative;
}

.angel-section-badge {
    background: #ffd700;
    color: #000;
    padding: 8px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin: -15px -15px 15px -15px;
    border-bottom: 2px solid #000;
}

.angel-flyer-details {
    font-size: 11px;
    line-height: 1.4;
}

.angel-details-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.angel-detail-item {
    font-size: 11px;
    color: #000;
}

.angel-detail-value {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 3px 5px;
    background: #f5f5f5;
}

.angel-flyer-no-wrap {
    text-align: center;
    margin-top: 20px;
}

.angel-flyer-no-wrap img {
    max-width: 80px;
    height: auto;
}

.angel-flyer-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #000;
    font-style: italic;
    color: #00693e;
    font-size: 16px;
}

.no-wrap-text {
    text-decoration: underline;
}

.angel-tree-print-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff !important;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: inline-block;
    margin: 10px;
    text-decoration: none;
}

.angel-tree-print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.angel-tree-print-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.angel-tree-pdf-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 600px;
}

.angel-tree-pdf-container iframe {
    width: 100%;
    min-height: 1000px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.angel-tree-pdf-loading {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

.angel-tree-pdf-loading p {
    margin-top: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.angel-tree-pdf-loading p:first-of-type {
    color: #e74c3c;
    font-size: 20px;
    font-weight: 700;
}

.angel-tree-notice {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin: 20px 0;
}

.angel-tree-notice p {
    margin: 10px 0;
    font-size: 16px;
}

.angel-tree-download-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff !important;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: inline-block;
    margin: 10px;
    text-decoration: none;
}

.angel-tree-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.angel-tree-download-btn .dashicons {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Print Styles */
@media print {
    .angel-tree-header,
    .angel-tree-print-btn,
    .angel-tree-thankyou-message {
        display: none !important;
    }
    
    .angel-tree-flyer {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        page-break-inside: avoid;
    }
    
    body {
        background: #fff;
    }
}

/* Error Messages */
.angel-tree-error {
    background: #fee;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #c0392b;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .angel-tree-frontend-container {
        padding: 15px;
        margin: 20px auto;
    }

    .angel-tree-main-title {
        font-size: 22px;
    }

    .angel-tree-search-card,
    .angel-tree-info-card {
        padding: 25px;
    }

    .angel-tree-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .angel-tree-form-row-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .angel-tree-form-group-inline {
        width: 100%;
    }

    .angel-tree-form-row-inline .angel-tree-search-btn {
        width: 100%;
        margin-top: 10px;
    }

    .angel-card-image {
        height: 200px;
    }

    .angel-card-details {
        padding: 20px;
    }

    .angel-detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .angel-detail-label {
        min-width: auto;
    }

    .angel-tree-modal-content {
        padding: 25px;
        width: 95%;
    }

    .angel-tree-modal-footer {
        flex-direction: column;
    }

    .angel-tree-btn-primary,
    .angel-tree-btn-secondary {
        width: 100%;
    }

    .angel-tree-thankyou-message {
        padding: 40px 20px;
    }

    .angel-tree-thankyou-message h2 {
        font-size: 24px;
    }

    .angel-tree-thankyou-message p {
        font-size: 16px;
    }

    /* Flyer responsive */
    .angel-tree-flyer {
        padding: 15px;
    }

    .angel-flyer-header {
        flex-direction: column;
        text-align: center;
    }

    .angel-flyer-title h1 {
        font-size: 24px;
    }

    .angel-flyer-title h2 {
        font-size: 16px;
    }

    .angel-flyer-content {
        grid-template-columns: 1fr;
    }

    .angel-flyer-instructions {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .angel-tree-search-btn,
    .angel-tree-continue-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

