﻿.photo-upload-area {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--bs-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(21, 83, 80, 0.05);
    transition: all 0.3s ease;
    margin: 0 auto 1rem;
}

    .photo-upload-area:hover {
        background-color: rgba(21, 83, 80, 0.1);
        border-color: #123d3b;
    }

    .photo-upload-area img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 6px;
    }

.photo-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

    .phone-input-group input {
        flex: 1;
    }

.btn-remove-phone {
    padding: 0.375rem 0.75rem;
    margin-top: 0.5rem;
}

.form-section-title {
    color: var(--bs-primary);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

    .step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 20px;
        left: 50%;
        right: -50%;
        height: 2px;
        background-color: #e9ecef;
        z-index: 0;
    }

    .step-item.active:not(:last-child)::after {
        background-color: var(--bs-primary);
    }

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
}

.step-item.active .step-number {
    background-color: var(--bs-primary);
    color: white;
}

.step-item.completed .step-number {
    background-color: var(--bs-primary);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.alert-message {
    display: none;
    animation: slideDown 0.3s ease;
}

    .alert-message.show {
        display: block;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-loading {
    position: relative;
}

    .form-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 3px solid rgba(21, 83, 80, 0.3);
        border-top-color: var(--bs-primary);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        display: none;
    }

    .form-loading.loading::after {
        display: block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.step-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

    .step-navigation .btn {
        flex: 1;
    }

.cell-groups-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cell-group-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

    .cell-group-card:hover {
        border-color: var(--bs-primary);
        box-shadow: 0 4px 12px rgba(21, 83, 80, 0.15);
    }

    .cell-group-card.selected {
        border-color: var(--bs-primary);
        background-color: rgba(21, 83, 80, 0.05);
        box-shadow: 0 4px 12px rgba(21, 83, 80, 0.15);
    }

    .cell-group-card .checkmark {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: var(--bs-primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .cell-group-card.selected .checkmark {
        opacity: 1;
    }

.cell-group-card {
    position: relative;
}

.cell-group-name {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.cell-group-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cell-group-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

    .cell-group-info i {
        width: 20px;
        color: var(--bs-primary);
    }

.cell-group-leader {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    background-color: rgba(21, 83, 80, 0.02);
    padding: 0.75rem;
    border-radius: 4px;
}

.cell-group-leader-label {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.cell-group-leader-name {
    color: #212529;
    font-weight: 500;
}

.cell-group-leader-contact {
    color: #6c757d;
    font-size: 0.85rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-input-wrapper i {
        position: absolute;
        left: 12px;
        color: #6c757d;
        font-size: 1rem;
        pointer-events: none;
    }

    .search-input-wrapper .form-control {
        padding-left: 38px;
        padding-right: 38px;
    }

.btn-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-search-clear:hover {
        color: var(--bs-primary);
    }

.ministries-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ministry-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
}

    .ministry-card:hover {
        border-color: var(--bs-primary);
        box-shadow: 0 4px 12px rgba(21, 83, 80, 0.15);
    }

    .ministry-card.selected {
        border-color: var(--bs-primary);
        background-color: rgba(21, 83, 80, 0.05);
        box-shadow: 0 4px 12px rgba(21, 83, 80, 0.15);
    }

.ministry-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ministry-card.selected .ministry-checkbox {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.ministry-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ministry-card.selected .ministry-checkbox::after {
    opacity: 1;
}

.ministry-name {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    padding-right: 2rem;
}

.ministry-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ministry-leader {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    background-color: rgba(21, 83, 80, 0.02);
    padding: 0.75rem;
    border-radius: 4px;
}

.ministry-leader-label {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.ministry-leader-name {
    color: #212529;
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .step-item .step-label {
        font-size: 0.8rem;
    }

    .step-item:not(:last-child)::after {
        left: 50%;
        right: -50%;
    }

    .cell-groups-list {
        grid-template-columns: 1fr;
    }

    .ministries-list {
        grid-template-columns: 1fr;
    }
}
