/* Create View Styles */
.form-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

/* Two Column Layout Styles */
.form-columns {
    display: flex;
    gap: 24px;
    width: 100%;
}

.form-column-left {
    flex: 0 0 70%;
    max-width: 70%;
}

.form-column-right {
    flex: 0 0 30%;
    max-width: 30%;
}

.form-section {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px 20px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-group {
    flex: 1 1 240px;
    min-width: 220px;
    margin-bottom: 16px;
}

.form-group.full-width {
    flex: 1 1 100%;
    min-width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 24px;
    height: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
}

.form-label.required::after {
    content: ' *';
    color: #f44336;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: #1e84f2;
}

/* Error styles */
.form-input.error,
.form-input.input-error {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.field-error {
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 44px;
}

.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    resize: vertical;
    min-height: 100px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1e84f2;
}

.checkbox-label {
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    user-select: none;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #d7d7d7;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #f5f5f5;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #1e84f2;
    border-color: #1e84f2;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.map-container {
    width: 100%;
    margin-top: 8px;
}

.google-map {
    width: 100%;
    height: 250px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background-color: #f4f4f4;
    margin-bottom: 8px;
}

.map-instructions {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-style: italic;
}

.map-instructions p {
    margin: 0;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e84f2;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1a73d9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Supplies Selection Display */
.supplies-display {
    min-height: 48px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.supplies-display.empty {
    justify-content: center;
    color: #6c757d;
    font-style: italic;
    border-radius: 12px;
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
}

.supplies-display.empty .no-supplies-text {
    font-size: 14px;
    color: #5f6368;
}

.supply-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #495057;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.supply-tag:hover {
    background-color: #343a40;
}

.supply-tag .supply-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.supply-tag .remove-btn {
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0;
    margin-left: 4px;
}

.supply-tag .remove-btn:hover {
    color: #ffc107;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
}

.back-arrow {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-arrow:hover {
    transform: translateX(-2px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-title {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.header-subtitle {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-container {
        max-width: 100%;
        padding: 0 20px;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .form-columns {
        gap: 16px;
    }
    
    .form-column-left {
        flex: 0 0 65%;
        max-width: 65%;
    }
    
    .form-column-right {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .form-section {
        padding: 20px 16px;
    }
    
    .form-row {
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
        flex: 1 1 240px;
        min-width: 220px;
    }
}

@media (max-width: 900px) {
    .form-columns {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-column-left,
    .form-column-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 16px 0;
        margin-bottom: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-container {
        padding: 0 16px;
        gap: 16px;
    }
    
    .form-section {
        padding: 18px 14px;
    }
    
    .form-row {
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 10px;
        flex: 1 1 240px;
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 0 12px;
        margin: 12px 0;
        gap: 16px;
    }

    .form-section {
        padding: 16px 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .form-group {
        min-width: 100%;
        margin-bottom: 8px;
        flex: none;
        width: 100%;
    }

    .header {
        padding: 14px 0;
        margin-bottom: 16px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 0 8px;
        margin: 8px 0;
        gap: 12px;
    }

    .form-section {
        padding: 14px 10px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 8px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .header {
        padding: 12px 0;
        margin-bottom: 12px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .header-subtitle {
        font-size: 11px;
    }
    
    .back-arrow {
        width: 20px;
        height: 20px;
    }
    
    .google-map {
        height: 200px;
    }
    
    .form-row {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .form-group {
        margin-bottom: 6px;
        flex: none;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .form-container {
        padding: 0 4px;
        margin: 6px 0;
        gap: 10px;
    }
    
    .form-section {
        padding: 12px 8px;
    }
    
    .header {
        padding: 8px 0;
        margin-bottom: 10px;
    }
    
    .header-title {
        font-size: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .form-row {
        gap: 4px;
        margin-bottom: 4px;
    }
    
    .form-group {
        margin-bottom: 4px;
        flex: none;
        width: 100%;
    }
} 