/* ============================================
   MULTI-STEP FORM - SHARED CSS
   Use: <link rel="stylesheet" href="css/style.css">
   ============================================ */


/* --- Form Container --- */
.form-wrapper {
    max-width: 930px;
    margin: 60px auto;
    background: #0F2240;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

/* --- Step Bar --- */
.step-bar {
    display: flex;
    align-items: center;
    padding: 28px 36px 22px;
    background: #0B1929;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgb(255 255 255 / 63%);
    margin: 0 10px;
    border-radius: 1px;
    transition: background 0.4s;
}

.step-item.completed:not(:last-child)::after {
    background: #F5A623;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255 / 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgb(255 255 255 / 69%);
    flex-shrink: 0;
    transition: all 0.4s;
}

.step-item.active .step-num {
    border-color: #F5A623;
    color: #F5A623;
    box-shadow: 0 0 12px rgba(245,166,35,0.25);
}

.step-item.completed .step-num {
    border-color: #F5A623;
    background: #F5A623;
    color: #0B1929;
}

.step-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: rgb(255 255 255);
    white-space: nowrap;
    transition: color 0.4s;
}

.step-item.active .step-text {
    color: #F5A623;
}

.step-item.completed .step-text {
    color: rgba(255,255,255,0.7);
}

/* --- Form Body --- */
.form-body {
    padding: 40px 46px 36px;
    min-height: 400px;
}

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

.form-step.active {
    display: block;
}

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

/* --- Step Header --- */
.step-header {
    margin-bottom: 30px;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.step-header p {
    font-size: 13px;
    color: rgb(255 255 255 / 88%);
    line-height: 1.5;
}

/* --- Service Cards (Step 1) --- */
.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.service-card {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    mask-image: none !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s;
}

.service-card:hover {
    border-color: rgba(245,166,35,0.3);
    background: #fff;
}

.service-card.selected {
    border-color: #F5A623;
    background: rgba(245,166,35,0.08);
}

.service-card.selected::before {
    background: #F5A623;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(245,166,35,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
    color: #F5A623;
    transition: all 0.3s;
}

.service-card.selected .card-icon {
    background: #F5A623;
    color: #0B1929;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 6px !important;
    line-height: 1.3;
}

.card-desc {
    font-size: 15px;
    color: #FFFFFFC2;
    line-height: 1.5;
}

.check-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgb(22, 40, 70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.3s;
}

.service-card.selected .check-badge {
    border-color: #F5A623;
    background: #F5A623;
    color: #0B1929;
}

/* --- Form Fields --- */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.fields-grid .full-width {
    grid-column: 1 / -1;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.45);
}

.field-group label .req {
    color: #F5A623;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    appearance: none;
}

.field-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5A623' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 38px;
    cursor: pointer;
}

.field-group select option {
    background: #0F2240;
    color: #fff;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: rgba(255,255,255,0.18);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #F5A623;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}

.field-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- Error States --- */
.field-group.error input,
.field-group.error select,
.field-group.error textarea {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255,71,87,0.15);
}

.field-error {
    font-size: 11px;
    color: #ff4757;
    display: none;
}

.field-group.error .field-error {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.field-group.error,
.shake-anim {
    animation: shake 0.4s ease;
}

/* --- Review Section --- */
.review-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 20px 24px;
}

.review-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-block-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F5A623;
    display: flex;
    align-items: center;
    gap: 7px;
}

.review-edit-btn {
    background: none;
    border: 1.5px solid rgba(245,166,35,0.4);
    color: #F5A623;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.review-edit-btn:hover {
    background: rgba(245,166,35,0.1);
    border-color: #F5A623;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-item.full {
    grid-column: 1 / -1;
}

.review-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.review-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.review-value.empty {
    color: rgba(255,255,255,0.2);
    font-style: italic;
    font-weight: 400;
}

/* --- Navigation Buttons --- */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 46px 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-back {
    background: none;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.btn-continue {
    background: #F5A623;
    border: none;
    color: #0B1929;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(245,166,35,0.25);
}

.btn-continue:hover {
    background: #FFB940;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245,166,35,0.35);
}

.btn-submit {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: #fff;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(40,167,69,0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(40,167,69,0.35);
}

.btn-submit:disabled,
.btn-continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-submit.loading .btn-spinner {
    display: inline-block;
}

.btn-submit.loading .btn-text {
    display: none;
}

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

/* --- Success Screen --- */
.form-success {
    display: none;
    text-align: center;
    padding: 70px 40px;
    animation: fadeIn 0.5s ease;
}

.form-success.show {
    display: block;
}

.success-check {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 10px 35px rgba(40,167,69,0.3);
}

.success-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.success-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body { padding: 15px 8px 40px; }
    .step-bar { padding: 16px 14px 12px; flex-wrap: wrap; gap: 5px; }
    .step-item:not(:last-child)::after { display: none; }
    .step-text { font-size: 8px; }
    .step-num { width: 24px; height: 24px; font-size: 10px; }
    .form-body { padding: 26px 16px 20px; }
    .form-nav { padding: 16px 16px 24px; }
    .service-cards { grid-template-columns: 1fr; }
    .fields-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .step-header h2 { font-size: 19px; }
    .btn-back, .btn-continue, .btn-submit { padding: 11px 18px; font-size: 11px; }
    .card-desc { font-size: 11px; }
}
.form-wrapper label {
    color: #fff !important;
}
.form-wrapper input, .form-wrapper textarea, .form-wrapper select{
    color: #fff;
}
.step-header h2 {
    color: #fff !important;
}
.left-contact h2, .form-wrapper h2 {
    font-size: 25px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 500;
}
.form-wrapper input, .form-wrapper textarea, .form-wrapper select {
    color: #000 !important;
}
.phase-cards{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.phase-card{
    position:relative;
    cursor:pointer;
}

.phase-card input{
    display:none;
}

.phase-card span{
    display:block;
    padding:14px 22px;
    border:1px solid #d4b04a;
    color:#d4b04a;
    background:transparent;
    font-size:15px;
    font-weight:500;
    transition:.3s;
    white-space:nowrap;
}

.phase-card:hover span{
    background:#d4b04a;
    color:#162d54;
}

.phase-card input:checked + span{
    background:#d4b04a;
    color:#162d54;
    box-shadow:0 6px 18px rgba(212,176,74,.35);
}

@media(max-width:768px){

.phase-cards{
    display:grid;
    grid-template-columns:1fr;
}

.phase-card span{
    width:100%;
}

}

.service-card:hover .card-title{
    color: #041c38!important;
}
.service-card:hover .card-desc{
     color: #000!important;
     font-size: 15px;
}

.service-card.selected:hover{
    color: white!important;
}